<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>query &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/query/</link>
	<description>Feed of posts on WordPress.com tagged "query"</description>
	<pubDate>Thu, 26 Nov 2009 02:23:34 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[title]]></title>
<link>http://scriptforall.wordpress.com/2009/11/24/title-32/</link>
<pubDate>Tue, 24 Nov 2009 14:07:27 +0000</pubDate>
<dc:creator>kostland</dc:creator>
<guid>http://scriptforall.wordpress.com/2009/11/24/title-32/</guid>
<description><![CDATA[PC: Acer doubles Dell in the 3rd quarter &#8211; Actualits &#8211; ZDNet. Fr id=&#8221;; talkbackfor]]></description>
<content:encoded><![CDATA[PC: Acer doubles Dell in the 3rd quarter &#8211; Actualits &#8211; ZDNet. Fr id=&#8221;; talkbackfor]]></content:encoded>
</item>
<item>
<title><![CDATA[NaNo is in the Can (almost)]]></title>
<link>http://drizl.wordpress.com/2009/11/23/nano-is-in-the-can-almost/</link>
<pubDate>Mon, 23 Nov 2009 14:10:06 +0000</pubDate>
<dc:creator>drizl</dc:creator>
<guid>http://drizl.wordpress.com/2009/11/23/nano-is-in-the-can-almost/</guid>
<description><![CDATA[I took my writing on the road last night to meet up with some fellow NaNoers. I love meeting other w]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I took my writing on the road last night to meet up with some fellow NaNoers. I love meeting other writers. It must me feel, well not so weird in my quest to getting published. Most people who blog about writing are published writers or have gotten that YES from an agent. Me ~ not so much. I&#8217;m still one of those writers who is wallowing in the muck and mud trying to get someone to notice my work. Have I mentioned that querying sucks.</p>
<p>Back to NaNo. It has been an experience. Writing all the time with that deadline looming over my head constantly taunting me has been at times trying and other times exhilarating(that&#8217;s when you lose control of the words and they just spill out onto the page) &#8211; oh AND the words actually make sense and move the story forward. Gawd, that&#8217;s awesome! The past few days I&#8217;ve read plenty of blogs where the NaNoer is throwing in the towel. Why toss the towel when it&#8217;s not even Nov. 30th? Let me tell you my story is no where near complete but dammit I&#8217;m going to make it to 50k. Too bad for me the story will not be finished at 50k so I must push forward to oh I don&#8217;t know somewhere between 85,000 to 90,000. A lot of paranormal romance publishing houses require the story be between 80k-100k. All these f*cking guidelines can drive a writer mad. I think the story should dictate how long it should be, but what do I know I&#8217;m not published&#8230;.YET!  <strong>Bahahahaha</strong></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[#8 - Sky Funeral]]></title>
<link>http://doctorquery.wordpress.com/2009/11/23/8-sky-funeral/</link>
<pubDate>Mon, 23 Nov 2009 04:38:19 +0000</pubDate>
<dc:creator>doctorquery</dc:creator>
<guid>http://doctorquery.wordpress.com/2009/11/23/8-sky-funeral/</guid>
<description><![CDATA[Dear Doctor Query: Peter Grant had the good sense to retire from his stint as a Marine on permanent ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><em>Dear Doctor Query:</em></p>
<p><em>Peter Grant had the good sense to retire from his stint as a Marine on permanent loan to the CIA while all his parts were still in working order. Fifteen years as the pointy end of Uncle Sam&#8217;s big stick earned Grant the right to a quiet life.</em></p>
<p><em>Then an old friend calls in a chit, asks a simple favor. Since Grant already has plans to visit Tibet, all he has to do is deliver a letter when he gets there. The recipient? A mole. A high-ranking officer in China&#8217;s People&#8217;s Liberation Army, commander of a top-secret military facility outside Lhasa.</em></p>
<p><em>Based on an intelligence officer&#8217;s assessment, Grant expects to find a self-important, avaricious traitor who&#8217;s lost his nerve. Instead, he meets Colonel Sun, a determined, principled man caught in the closing jaws of a State Security investigation. Sun requests exfiltration, a move that would threaten the existence of the Tibetan network.</em></p>
<p><em>Grant finds himself sucked into the vortex that swirls around clandestine operations gone bad. A State Security officer dogs the colonel&#8217;s steps, half a world away Chinese spies relentlessly dig for the truth, and the carefully woven shroud of subterfuge that protects the Tibetan underground begins to unravel. In the scramble to protect networks, operatives, and secrets, the interests of nations threaten to grind the Chinese agent under the wheel of necessity.</em></p>
<p><em>But, Grant doesn&#8217;t have to let it happen. He doesn&#8217;t work for the CIA anymore.</em></p>
<p><em>Deep in hostile territory, operating naked on the remote Tibetan plateau, Grant takes a risky gamble. He plots Colonel Sun&#8217;s escape, a hell-for-leather race to freedom.</em></p>
<p><em>The simple favor just got complicated.</em></p>
<p><em>I am seeking representation for SKY FUNERAL, a completed 90,000 word spy thriller, the first in a planned series. I have a master&#8217;s degree in aerospace engineering and a fourteen-year career in the defense industry. I&#8217;ve been a member of Pikes Peak Writers, Colorado Springs Fiction Writer&#8217;s Group, and Valencia Critique Group, and have attended numerous writing seminars, conferences, and classes.</em></p>
<p><strong>This is very good. </strong></p>
<p><strong>You have given us a sense of urgency, and your voice has authority.  The query and the subject matter fit together, and your life experience makes a convincing argument that you could tell this story.  As a reader, I feel as though I would be in good hands with you.</strong></p>
<p><strong>The only thing I would do is tighten it up.  Take your seven paragraphs and try to turn them into three or four. Brevity is strength.</strong></p>
<p><strong>Then send it out!</strong></p>
<p><strong>That is all.</strong></p>
<p><strong>Doctor Query</strong></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Whipping Your NaNoWriMo Story Into Shape]]></title>
<link>http://julieduck.wordpress.com/2009/11/22/whipping-your-nanowrimo-story-into-shape/</link>
<pubDate>Sun, 22 Nov 2009 23:03:06 +0000</pubDate>
<dc:creator>Julie Duck</dc:creator>
<guid>http://julieduck.wordpress.com/2009/11/22/whipping-your-nanowrimo-story-into-shape/</guid>
<description><![CDATA[NaNoWriMo is almost outta here (and I feel many participants in this annual event are mighty glad). ]]></description>
<content:encoded><![CDATA[NaNoWriMo is almost outta here (and I feel many participants in this annual event are mighty glad). ]]></content:encoded>
</item>
<item>
<title><![CDATA[ใน PDO query 2 ครั้งติดกันอาจจะเจ๊ง ถ้า...]]></title>
<link>http://veer66.wordpress.com/2009/11/21/pdomquery/</link>
<pubDate>Sat, 21 Nov 2009 10:54:35 +0000</pubDate>
<dc:creator>वीर</dc:creator>
<guid>http://veer66.wordpress.com/2009/11/21/pdomquery/</guid>
<description><![CDATA[ใน PDO query 2 ครั้งติดกันอาจจะเจ๊ง ถ้าหากว่า fetch ข้อมูลออกมาไม่หมด (ตามคู่มือ) แต่ก็มีท่าแก้คือ เ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>ใน PDO query 2 ครั้งติดกันอาจจะเจ๊ง ถ้าหากว่า fetch ข้อมูลออกมาไม่หมด (<a href="http://www.php.net/manual/en/pdo.query.php">ตามคู่มือ</a>)  แต่ก็มีท่าแก้คือ เรียก <a href="http://www.php.net/manual/en/pdostatement.closecursor.php">closeCursor</a> ก่อน</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Great Agent Hunt - Getting to Yes (part 1)]]></title>
<link>http://briaspage.wordpress.com/2009/11/20/end/</link>
<pubDate>Fri, 20 Nov 2009 16:12:00 +0000</pubDate>
<dc:creator>briaq</dc:creator>
<guid>http://briaspage.wordpress.com/2009/11/20/end/</guid>
<description><![CDATA[You may have seen last week when I announced that I had signed an agency contract with Kim Lionetti ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>You may have seen last week when I announced that I had signed an agency contract with Kim Lionetti at Bookends. Well, I promised to post some thoughts about the process, so here they are.</p>
<p>&#160;</p>
<p>Finding an agent is, as we all know, not an easy path. Here&#8217;s my story and what I learned.</p>
<p>&#160;</p>
<p>I started querying 16 months ago with my first book. I made the standard newbie mistake of sending it out when I thought it was ready. Of course, I didn&#8217;t realize I was making the mistake. I&#8217;d revised and edited it. I&#8217;d worked with a CP and beta readers. I&#8217;d grown and pushed my story. But it wasn&#8217;t enough. I blew through about 50 agents who my sorting process had said were a good match before I realized this. A couple agents gave me amazing notes on how to better my book. Another 4 months of work and I realized I had a YA Fantasy novel I loved. No longer that first love like when you&#8217;re young and think this MUST be it, but a mature love of someone who had seen young love and learned from it.</p>
<p>&#160;</p>
<p>And I was also out of agents to query who would fit in the Great Match category.</p>
<p>&#160;</p>
<p>Last November I took a much needed break from the intense world of my fantasy and decided to try Nano. Only, it went a little too well. I wrote Secret Girlfriend (a Rom Com&#8217;y type story) in 11 days and surprised myself by loving every minute of it. Secret Girlfriend is the exact opposite of Markbearer. It&#8217;s lighter, fewer story lines, fewer themes, only one world, fewer characters and funny (good lord, I hope it&#8217;s funny). Every thought in my head was to just call it a palate cleansing exercise and get back to my fantasy world.</p>
<p>&#160;</p>
<p>Flash Forward to this summer. The fantasy was done-done and I did an ROI on writing book two of such a huge undertaking without being able to query it since it wouldn&#8217;t be a standalone. (I did take into consideration the threats from the people who had read book 1&#8230;but, alas, they lost). On a whim, I opened Secret Girlfriend and ran through it. Wow. How surprised was I to see it was pretty darn clean? I started sending my weekly chapters to my CP and was surprised to find out she thought it was clean too.</p>
<p>&#160;</p>
<p>The beta readers read through it quickly too and then Gwen Hayes forced me into querying. Not only that, but her husband got in on it: If you send five queries today, I&#8217;ll bake you a pie. (I&#8217;d just like to say, I blame him 100% for the weight I gained during this process.)</p>
<p>&#160;</p>
<p>This is where I stop the story to discuss the actual query process.</p>
<p>&#160;</p>
<p>I&#8217;d learned a lot querying my first book. I learned when to listen to what They say and when not to. For example. I made a list of 20 agents I would love love love to have. TWENTY??? Yes. Twenty. The process the first time taught me that the idea of a &#8220;dream agent&#8221; is not only wrong, but it&#8217;s not healthy. What do you do when that person rejects you off a query without even looking at your work? They may not be interested in you for several reasons. They may not actually <em>be</em> your dream agent. But how would you know that? You typically haven&#8217;t met them, spoken with them or seen anything other than their online presence. The last round I found that two of my &#8220;dream agents&#8221; were actually people who would be a horrible match for me (and so visa versa).  Also, waiting for a small number puts your entire career on hold. Would you only send your resume out to one employer at a time if you were jobless?</p>
<p>&#160;</p>
<p>If you didn&#8217;t see my post on how I researched, organized and sorted agents, check it out <a href="http://briaspage.wordpress.com/2009/11/17/search/">HERE</a>. It explains that part of the process very clearly.</p>
<p>&#160;</p>
<p>So, I removed some agents and added others then started the process for book 2. After Mr. Hayes bribed me with pie, I sent out a minimum of 2 queries a day on business days. I logged them all on <a href="http://querytracker.net/">querytracker.net </a>(Go get it now if you don&#8217;t have it) and then I put it aside. I wasn&#8217;t going to think about them for 2 months.</p>
<p>&#160;</p>
<p>The plan was to look at the remaining agents on my list at that time and sort them into groups of five to send out as rejections came in. Only, that&#8217;s not how book 2 went. Book 2 went something like this:</p>
<ul>
<li>Mr. Gwen bribes me to send out queries</li>
<li>Queries get surprising number of requests surprisingly quickly</li>
<li>Partial requests turn into fast (again surprising) full requests</li>
<li>Full request turns into an offer</li>
<li>One offer turns into several</li>
<li>About a month has gone by since Mr. Gwen&#8217;s bribes put a disgusting amount of fat in my body (when I say disgusting, I mean the best tasting stuff on the planet)</li>
</ul>
<p>&#160;</p>
<p>I think we can all admit, this is not the normal time frame&#8230;and hopefully not the normal amount of weight put on in a month&#8230;</p>
<p>&#160;</p>
<p>Obviously, a lot went on during the week where I got the offers. But another thing I think we can all agree on is how long this post is! So, I&#8217;ll be posting later about what I actually learned during that week.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Apakah Data Warehouse itu?]]></title>
<link>http://yoyonb.wordpress.com/2009/11/20/apakah-data-warehouse-itu/</link>
<pubDate>Fri, 20 Nov 2009 09:30:15 +0000</pubDate>
<dc:creator>Ardijan Abu Hanifah</dc:creator>
<guid>http://yoyonb.wordpress.com/2009/11/20/apakah-data-warehouse-itu/</guid>
<description><![CDATA[Data Warehouse adalah relasional database dengan desain tertentu yang memudahkan Query dan Analisis.]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Data Warehouse adalah relasional database dengan desain tertentu yang memudahkan Query dan Analisis. </p>
<p> Pada umumnya Data Warehouse berisi data sejarah yang diturunkan dari data transaksi dan beberapa data dari sumber data yang lain.</p>
<p>Dengan Data Warehouse maka Organisasi bisa mendapatkan data yang sudah terkonsolidasi dari berbagai sumber data.</p>
<p><strong>William Harvey Inmon</strong> atau biasa dipanggil <strong>Bill Inmon</strong> pada tahun 1991 dalam bukunya <strong><em>&#8220;Building the Data Warehouse&#8221;</em></strong><br />
mendefinisikan Data Warehouse sbb.:</p>
<p><strong><em>	 “A data warehouse is a subject-oriented, integrated,<br />
	  timevariant, and nonvolatile collection of data<br />
	  in support of management’s decision-making<br />
          process.”</em></strong></p>
<p><strong>Subject-oriented:</strong><br />
	- Data di kumpulkan berdasarkan subjek utama, misalnya<br />
          Customer, Product atau Sales.<br />
	- Data Model dan analisa diutamakan untuk pengambil<br />
          keputusan bukan untuk proses transaksi sehari-hari.<br />
	- Menyediakan cara yang sederhana dan ringkas untuk<br />
          menampilkan data sekitar subjek tertentu dengan cara<br />
          mengeluarkan data yang tidak berguna dalam proses<br />
          pengambilan keputusan.</p>
<p><strong>Integrated:</strong><br />
	- Dibangun dari integrasi berbagai macam sumber data<br />
          misalnya Relational Database, Flat Files, Online<br />
          Tansaction record, dsb.<br />
	- Menggunakan teknologi Data Cleansing dan Data<br />
          Integration. Tujuannya:<br />
	  	- Memastikan konsistensi Naming Convention,<br />
                  Encoding Structure, Ukuran attributes. dsb.<br />
                  diantara sumber data yang berbeda-beda.<br />
		- Ketika data dimasukkan ke Data<br />
                  Warehouse, data tesebut telah dikonversikan.</p>
<p><strong>Time Variant:</strong><br />
	- Rentang waktu data untuk Data Warehouse pasti lebih<br />
          panjang jika dibandingkan dengan sistem operasional<br />
		- Data Sistim Operasional : Data saat ini<br />
		- Data Data Warehouse   : Menyediakan informasi<br />
          dari perspektif sejarah misal 5 s/d 10 tahun<br />
	- Setiap struktur Key dalam Data Warehouse selalu<br />
          mengandung elemen Time secara implisit atau explisit<br />
	- Namun pada Key data operasional mungkin tidak<br />
          mengandung elemen Time.</p>
<p><strong>Non Volatile:</strong><br />
	- Artinya begitu data masuk ke Data Warehouse<br />
          seharusnya Data tidak boleh berubah lagi.<br />
	- Secara fisik data pada Data Warehouse disimpan<br />
          terpisah dari operasional sistem.<br />
	- Operasi Update tidak pernah terjadi pada lingkungan<br />
          data Warehouse, karena<br />
		- Tidak perlu melakukan proses transaksi, Recovery,<br />
                  dan mekanisme kontrol proses simultan.<br />
		- Hanya memerlukan dua operasi proses Data yaitu<br />
                  Data Loading dan Data Retrieving.</p>
<p><strong>Elemen-elemen dasar Data Warehouse</strong></p>
<p><a href="http://yoyonb.wordpress.com/files/2009/11/basic-elements-of-dw3.gif"><img src="http://yoyonb.wordpress.com/files/2009/11/basic-elements-of-dw3.gif?w=300" alt="" title="Basic Elements of DW" class="aligncenter size-medium wp-image-42" height="200" width="300"></a></p>
<p><strong>Source System</strong><br />
	Operasional sistem yang berfungsi mencatat transaksi dari<br />
        suatu bisnis. Source System biasa disebut juga sebagai<br />
	Legacy System.</p>
<p><strong>Data Staging Area</strong><br />
	Tempat penyimpanan data sementara, untuk melakukan<br />
        proses Clean, Transform, Combine, Deduplicate,<br />
        Household, archive, dan menyiapkan sumber data untuk<br />
        digunakan Data Warehouse.</p>
<p>	Staging Area tidak diperuntukkan sebagai sumber data<br />
        untuk reporting karena datanya masih kotor dan bersifat<br />
	sementara.</p>
<p><strong>Presentation Server</strong><br />
	Target mesin yang secara fisik adalah mesin dimana data<br />
        dari Data Warehouse di organisasikan dan disimpan untuk<br />
        dilakukan query oleh End User, Reporting dan aplikasi yang<br />
        lain. Disini data disimpan dengan framework Dimmensional.</p>
<p>        Jika menggunakan Relational Database maka tabel akan<br />
        diorganisasikan dalam bentuk Star-Schema, namun<br />
	jika tidak menggunakan Relational Database maka akan<br />
       disimpan dalam bentuk OLAP.<br />
       (mengenai OLAP akan dibahas pada sesi tersendiri)</p>
<p><strong>Dimensional Model</strong><br />
	Data Modeling yang khusus dipakai pada Data Warehouse,<br />
        sebagai alternatif lain dari E/R Modeling yang biasanya<br />
        dipakai pada sistem transaksional.<br />
	(mengenai Dimensional Modeling, akan dibahas pada sesi<br />
        tersendiri)</p>
<p><strong>Business Process</strong><br />
	Dalam terminologi disini bukanlah Business Process seperti<br />
        pada transaksional sistem, tetapi lebih tepat maksudnya<br />
	adalah mengelompokkan sumber data menurut kesamaan<br />
        temanya. Misalnya Finance, Marketing, Production. etc.</p>
<p>        Nantinya setiap Business Process akan diimplementasikan<br />
        sebagai Data Marts.</p>
<p><strong>Data Mart</strong><br />
	Potongan secara logika dari Data Warehouse secara<br />
        keseluruhan.</p>
<p>	Data Mart bisa juga dilihat sebagai potongan secara logika<br />
        dari data Warehouse terhadap suatu Business Process<br />
        tertentu.<br />
	(mengenai Data Mart, akan dibahas pada sesi tersendiri)</p>
<p><strong>Data Warehouse</strong><br />
	Adalah sumber data yang bisa di Query dalam suatu<br />
        perusahaan. Sebenarnya Data Warehouse adalah<br />
        gabungan dari beberapa Data Marts. </p>
<p><strong>Operational Data Store</strong><br />
	Pada awalnya ODS adalah titik integrasi dari berbagai<br />
        operasional sistem. Karena ODS juga mendukung access<br />
	operasional dan bisa di update maka ODS seharusnya<br />
        ditempatkan diluar Data Warehouse. </p>
<p>        Pada akhirnya fungsi ODS juga berkembang menjadi<br />
        semacam Desicision Support karena ODS mengandung<br />
        detail data yang telah terintegrasi dari berbagai sumber<br />
        Data.<br />
	(mengenai ODS, akan dibahas pada sesi tersendiri)</p>
<p><strong>OLAP</strong><br />
	Disebut juga sebagai Multidimensional Database (MDDB).<br />
        OLAP sengaja dirancang untuk memudahkan dan<br />
	mempercepat query yang dilakukan pada MDDB. </p>
<p>        Karakteristik dan sifat OLAP sangat berbeda dengan OLTP<br />
	karena memang mempunyai tugas dan fungsi yang<br />
        berbeda.</p>
<p><strong>ROLAP</strong><br />
	Relational OLAP.</p>
<p><strong>MOLAP</strong><br />
	Multidimensional OLAP<br />
	(mengenai OLAP, ROLAP dan MOLAP, akan dibahas pada<br />
        sesi tersendiri)</p>
<p><strong>End User Application</strong><br />
	Sekumpulan Tool yang bisa melakukan Query, Analisa<br />
        Data, dan menampilkan informasi untuk mendukung<br />
	kepentingan Bisnis. </p>
<p>        Paling tidak Tool ini juga dilengkapi dengan kemampuan<br />
        untuk akses Data, fungsi Spreatsheet, fungsi grafik, dan<br />
        ada fasilitas untuk menampilkan prompt dan<br />
        menyederhanakan tampilan screen pada End User.</p>
<p><strong>End User Data Access Tool</strong><br />
	Sebagai Client dari Data Warehouse. Pada Relational Data<br />
        Warehouse, Client dapat mengirimkan SQL Request<br />
	ke Server. </p>
<p>        Secepatnya End User Data Access Tool akan selesai pada<br />
        SQL Session dan kembali untuk menampilkan pada screen<br />
        Data dari suatu Report, Grafik, atau yang lebih tinggi<br />
        seperti form suatu analisa pada User. </p>
<p>	End User Data Access Tool dapat saja sederhana seperti<br />
        Ad-Hoc Query Tool atau bisa juga bisa komplex<br />
	seperti Data Mining yang canggih atau aplikasi modeling.</p>
<p><strong>Ad-Hoc Query Tool</strong><br />
	End User Data Access Tool yang dibuat khusus sehingga<br />
        memungkinkan User untuk membuat Query sendiri secara<br />
        langsung dengan cara memanipulasi Relational Tables dan<br />
        Join-join nya. </p>
<p>        Dipasaran biasanya Ad-Hoc Query Tool dipaket menjadi<br />
        satu dengan Reporting Tool.</p>
<p><strong>Modeling Application</strong><br />
	Data Warehouse Client yang canggih dengan kemampuan<br />
        analytic yang dapat merubah bentuk atau menjadikan<br />
	intisari dari output Data Warehouse. </p>
<p>        Modeling ini termasuk didalamnya adalah:<br />
	- Forecasting Model, yang berusaha memperkirakan masa<br />
          depan<br />
	- Behaviour Scoring Model, yang dapat mengklasifikasikan<br />
          perilaku belanja Customer<br />
	- Allocation Model, yang mengambil data Cost dari Data<br />
          Warehouse lalu membagikan Cost tersebut ke semua<br />
	  poduct Group atau Customer Group.<br />
	- Terutama Data Mining Tools.</p>
<p><strong>Meta Data</strong><br />
	Semua informasi dalam lingkungan Data Warehouse namun<br />
        bukan data itu sendiri, Misalnya informasi mengenai<br />
	asal data source dari aplikasi apa, tabel apa, field apa,<br />
        formula bisnis bagaimana, dsb. Meta Data perlu dibuatkan<br />
        Catalog, diberi Version Stamp, di dokumentasikan dan di<br />
        backup.</p>
<p>	Beberapa ETL Tool dipasaran ada yang sudah dilengkapi<br />
        Meta Data management.</p>
<p>Demikian elemen dasar dari Data Warehouse, masih banyak komponen yang nanti akan di jelaskan pada sesi berikutnya.</p>
<p>Reff:<br />
Kimball, Ralph, 1998, <strong><em>The Data Warehouse Lifecycle Toolkit</em></strong>,  Jhon Wiley &#38; Sons, Inc.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[FUNÇÕES: Validação de CNPJ e CPF]]></title>
<link>http://sqlfromhell.wordpress.com/2009/11/19/validacao-de-cnpj-e-cpf/</link>
<pubDate>Thu, 19 Nov 2009 23:50:20 +0000</pubDate>
<dc:creator>Paulo R. Pereira</dc:creator>
<guid>http://sqlfromhell.wordpress.com/2009/11/19/validacao-de-cnpj-e-cpf/</guid>
<description><![CDATA[Boa noite pessoas! No blog do Rogério, encontrei um ótimo algoritmo de validação de CNPJ e CPF para ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Boa noite pessoas!</p>
<p>No <a href="http://blogdozunga.blogspot.com/2009/02/precisava-de-uma-rotina-para-validar.html" target="_blank">blog do Rogério</a>, encontrei um ótimo algoritmo de validação de CNPJ e CPF para ORACLE, para que ninguém tenha que ficar transitando de &#8216;PL\SQL&#8217; para &#8216;T-SQL&#8217;, já realizei este trabalho e vou detalhar um pouco o funcionamento deste algoritmo.</p>
<p>Primeiro precisamos de um CNPJ ou CPF para validar, assim identifiquei um que estava &#8220;vagando&#8221; na internet.</p>
<div style="border:1px;background-color:#000000;color:#ffffff;font-weight:bold;border-color:#ffffff;margin:5px;padding:5px;"><code>DECLARE @CPF_CNPJ VARCHAR(20)<br />
SET @CPF_CNPJ = '02.841.834/0001-55'</code></div>
<p>Ok, tenho o CNPJ/CPF para validar, mas tenho que remover os caracteres não numéricos, desta forma utilizarei a função SOMENTE_NUMEROS que desenvolvi para o <a href="http://sqlfromhell.wordpress.com/2009/11/18/somente-numeros-com-cte/" target="_blank">artigo anterior</a>:</p>
<div style="border:1px;background-color:#000000;color:#ffffff;font-weight:bold;border-color:#ffffff;margin:5px;padding:5px;"><code>SET @CPF_CNPJ = dbo.SOMENTE_NUMEROS(@CPF_CNPJ)</code></div>
<p>A primeira valiação verifica se a quantidade de caracteres é de um CPF ou de um CNPJ</p>
<div style="border:1px;background-color:#000000;color:#ffffff;font-weight:bold;border-color:#ffffff;margin:5px;padding:5px;"><code>IF LEN(@CPF_CNPJ) NOT IN (11, 14)<br />
BEGIN<br />
  SELECT 'Inválido'<br />
  RETURN<br />
END</code></div>
<p>Em sequida, defino quatro variáveis que serão utilizadas para a validação dos digitos verificadores do CNPJ e CPF.</p>
<div style="border:1px;background-color:#000000;color:#ffffff;font-weight:bold;border-color:#ffffff;margin:5px;padding:5px;"><code>DECLARE<br />
  @DIGITO1 INT,<br />
  @DIGITO2 INT,<br />
  @VALOR1 INT,<br />
  @VALOR2 INT</code></div>
<p>Também há outras variáveis a serem utilizadas durante a operação.</p>
<div style="border:1px;background-color:#000000;color:#ffffff;font-weight:bold;border-color:#ffffff;margin:5px;padding:5px;"><code>DECLARE<br />
  @I INT,<br />
  @J INT,<br />
  @TOTAL_TMP INT,<br />
  @COEFICIENTE_TMP INT,<br />
  @DIGITO_TMP INT,<br />
  @VALOR_TMP INT</code></div>
<p>As variáveis DIGITO1 e DIGITO2 armazenarão os digitos verificadores do CNPJ/CPF.</p>
<div style="border:1px;background-color:#000000;color:#ffffff;font-weight:bold;border-color:#ffffff;margin:5px;padding:5px;"><code>SET @DIGITO1 = SUBSTRING(@CPF_CNPJ, LEN(@CPF_CNPJ) - 1, 1)<br />
SET @DIGITO2 = SUBSTRING(@CPF_CNPJ, LEN(@CPF_CNPJ), 1)<br />
</code></div>
<p>Feito isso, determino um laço de repetição para dois loops, um para cada digito.</p>
<div style="border:1px;background-color:#000000;color:#ffffff;font-weight:bold;border-color:#ffffff;margin:5px;padding:5px;"><code>SET @J = 1<br />
WHILE @J &#60;= 2<br />
BEGIN</code></div>
<p> Determino os valores inicias das variáveis de validação.</p>
<div style="border:1px;background-color:#000000;color:#ffffff;font-weight:bold;border-color:#ffffff;margin:5px;padding:5px;"><code>  SELECT<br />
    @TOTAL_TMP = 0,<br />
    @COEFICIENTE_TMP = 2<br />
</code></div>
<p>Agora, aplico o algoritmo para gerar cada um dos digitos verificadores.</p>
<div style="border:1px;background-color:#000000;color:#ffffff;font-weight:bold;border-color:#ffffff;margin:5px;padding:5px;"><code>  SET @I = ((LEN(@CPF_CNPJ) - 3) + @J)<br />
  WHILE @I &#62;= 0<br />
  BEGIN<br />
    SELECT<br />
      @DIGITO_TMP = SUBSTRING(@CPF_CNPJ, @I, 1),<br />
      @TOTAL_TMP = @TOTAL_TMP + (@DIGITO_TMP * @COEFICIENTE_TMP),<br />
      @COEFICIENTE_TMP = @COEFICIENTE_TMP + 1<br />
</code><code>    IF (@COEFICIENTE_TMP &#62; 9) AND LEN(@CPF_CNPJ) = 14<br />
      SET @COEFICIENTE_TMP = 2<br />
</code><code>    SET @I = @I - 1<br />
  END<br />
</code><code>  SET @VALOR_TMP = 11 - (@TOTAL_TMP % 11)<br />
</code><code>  IF (@VALOR_TMP &#62;= 10)<br />
    SET @VALOR_TMP = 0 </code></div>
<p>Identifico qual dos digitos verificadores foi gerado e prossigo para o próximo digito no laço de repetição.</p>
<div style="border:1px;background-color:#000000;color:#ffffff;font-weight:bold;border-color:#ffffff;margin:5px;padding:5px;"><code>  IF @J = 1<br />
    SET @VALOR1 = @VALOR_TMP<br />
  ELSE<br />
    SET @VALOR2 = @VALOR_TMP<br />
</code><code>  SET @J = @J + 1<br />
END</code></div>
<p>Por fim, verifico se os digitos gerados têm o mesmo valor dos presente no CNPJ/CPF.</p>
<div style="border:1px;background-color:#000000;color:#ffffff;font-weight:bold;border-color:#ffffff;margin:5px;padding:5px;"><code>IF @VALOR1 = @DIGITO1 AND @VALOR2 = @DIGITO2<br />
  SELECT 'Válido'<br />
ELSE<br />
  SELECT 'Inválido'</code></div>
<p>Para o próximo artigo, ainda estou estudando uma forma interessante de trabalhar com máscaras e CTE.</p>
<p><strong>Disponíveis para download:</strong></p>
<p>Função SOMENTE_NUMEROS (com CTE):<br />
<a href="http://www.4shared.com/file/152602089/d1b4b224/SOMENTE_NUMEROS_-_CTE_-_Func.html" target="_blank">http://www.4shared.com/file/152602089/d1b4b224/SOMENTE_NUMEROS_-_CTE_-_Func.html</a></p>
<p>Função SOMENTE_NUMEROS (com WHILE):<br />
<a href="http://www.4shared.com/file/152602109/18af521b/SOMENTE_NUMEROS_-_WHILE_-_Func.html" target="_blank">http://www.4shared.com/file/152602109/18af521b/SOMENTE_NUMEROS_-_WHILE_-_Func.html</a></p>
<p>Função VALIDA_CPF_CNPJ:<br />
<a href="http://www.4shared.com/file/152602115/8022f71/VALIDA_CPF_CNPJ_-_Func.html" target="_blank">http://www.4shared.com/file/152602115/8022f71/VALIDA_CPF_CNPJ_-_Func.html</a></p>
<p><strong>Artigos relacionados:</strong></p>
<p>Blog do Rogério &#8211; Validação CNPJ/CPF com PL/SQL<br />
<a href="http://blogdozunga.blogspot.com/2009/02/precisava-de-uma-rotina-para-validar.html" target="_blank">http://blogdozunga.blogspot.com/2009/02/precisava-de-uma-rotina-para-validar.html</a></p>
<p>FUNÇÕES: Somente Números (com CTE)<br />
<a href="http://sqlfromhell.wordpress.com/2009/11/18/somente-numeros-com-cte/" target="_blank">http://sqlfromhell.wordpress.com/2009/11/18/somente-numeros-com-cte/</a></p>
<p>FUNÇÕES: Somente Números (com WHILE)<br />
<a href="http://sqlfromhell.wordpress.com/2009/11/17/somente-numeros-com-while/" target="_blank">http://sqlfromhell.wordpress.com/2009/11/17/somente-numeros-com-while/</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Query Macam Apa Ini ?]]></title>
<link>http://thesparkofinsanity.wordpress.com/2009/11/19/query-macam-apa-ini/</link>
<pubDate>Thu, 19 Nov 2009 15:47:31 +0000</pubDate>
<dc:creator>GLG</dc:creator>
<guid>http://thesparkofinsanity.wordpress.com/2009/11/19/query-macam-apa-ini/</guid>
<description><![CDATA[Query yang gw ketemuin tadi siang pas lagi bersih-bersih database. Ini cuman &#8220;satu query]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:justify;">Query yang gw ketemuin tadi siang pas lagi bersih-bersih database. Ini cuman &#8220;satu query&#8221; lho. Bloody hell&#8230; liatnya aja udah eneg -_-!. Kayanya ini sementara bakalan menjadi query terpanjang yang gw temuin semenjak <em>in charge</em> di permbuatan sistem 2010 NextG. Kali aja besok-besok dapet query yang lebih puanjaaaang lagi&#8230; hohoho&#8230;.</p>
<blockquote><p><span style="font-family:Arial;font-size:x-small;">SELECT t.sales_number,  sum(t.badan_pusat_pengelolaan_data_asuransi_nasional) AS  badan_pusat_pengelolaan_data_asuransi_nasional,  sum(t.combined_non_marine_surplus_treaty) AS combined_non_marine_surplus_treaty,  sum(t.fire_statistical_cession_reinsurance_treaty__bppdan) AS  fire_statistical_cession_reinsurance_treaty__bppdan,  sum(t.indonesian_standard_earthquake_reinsurance__maipark) AS  indonesian_standard_earthquake_reinsurance__maipark,  sum(t.pt_asuransi_maipark_indonesia) AS pt_asuransi_maipark_indonesia,  sum(t.non_marine_surplus_reinsurance_agreement) AS  non_marine_surplus_reinsurance_agreement,  sum(t.non_marine_surplus_reinsurance_agreement__extention_of_2008) AS  non_marine_surplus_reinsurance_agreement__extention_of_2008,  sum(t.marine_cargo_excess_of_loss_reinsurance_contract) AS  marine_cargo_excess_of_loss_reinsurance_contract,  sum(t.marinecargoxolreinsurancecontractextentionof2008) AS  marinecargoxolreinsurancecontractextentionof2008,  sum(t.non_marine_quota_share_reinsurance_agreement) AS  non_marine_quota_share_reinsurance_agreement,  sum(t.non_marine_quota_share_reinsurance_agreement__extention_of_2007) AS  non_marine_quota_share_reinsurance_agreement__extention_of_2007,  sum(t.non_marine_quota_share_reinsurance_agreement__extention_of_2008) AS  non_marine_quota_share_reinsurance_agreement__extention_of_2008,  sum(t.riotsstrikesandmaliciousdamageandnaturalperilsxolra) AS  riotsstrikesandmaliciousdamageandnaturalperilsxolra,  sum(t.riotsstrikesandmaliciousdamageandnaturalperilsxolraextof2008) AS  riotsstrikesandmaliciousdamageandnaturalperilsxolraextof2008,  sum(t.riotsstrikesandmaliciousdamagexolra) AS  riotsstrikesandmaliciousdamagexolra,  sum(t.riotsstrikesandmaliciousdamagexolramainlayer) AS  riotsstrikesandmaliciousdamagexolramainlayer,  sum(t.riotsstrikesandmaliciousdamagexolramainlayerextentionof2008) AS  riotsstrikesandmaliciousdamagexolramainlayerextentionof2008,  sum(t.riskandcatastrophexolra) AS riskandcatastrophexolra,  sum(t.riskandcatastrophexolraextentionof2008) AS  riskandcatastrophexolraextentionof2008, sum(t.rsmdandnaturalperilsxolra) AS  rsmdandnaturalperilsxolra, sum(t.terrorismandsabotagexolrasublayer) AS  terrorismandsabotagexolrasublayer FROM (SELECT DISTINCT  &#8220;maintenance&#8221;.reassraw.sales_number, &#8220;maintenance&#8221;.reassraw.treaty_type,  &#8220;maintenance&#8221;.reassraw.treaty_name, CASE WHEN  (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Badan Pusat Pengelolaan Data Asuransi  Nasional&#8217;::text) THEN &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric END AS  badan_pusat_pengelolaan_data_asuransi_nasional, CASE WHEN  (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Combined non marine surplus  treaty&#8217;::text) THEN &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric END AS  combined_non_marine_surplus_treaty, CASE WHEN  (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Fire statistical cession reinsurance  treaty (BPPDAN)&#8217;::text) THEN &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric END  AS fire_statistical_cession_reinsurance_treaty__bppdan, CASE WHEN  (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Indonesian standard earthquake  reinsurance (MAIPARK)&#8217;::text) THEN &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric  END AS indonesian_standard_earthquake_reinsurance__maipark, CASE WHEN  (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;PT. Asuransi MAIPARK Indonesia&#8217;::text)  THEN &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric END AS  pt_asuransi_maipark_indonesia, CASE WHEN (&#8220;maintenance&#8221;.reassraw.treaty_name =  &#8216;Non Marine Surplus Reinsurance Agreement&#8217;::text) THEN  &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric END AS  non_marine_surplus_reinsurance_agreement, CASE WHEN  (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Non Marine Surplus Reinsurance Agreement  (Extention of 2008)&#8217;::text) THEN &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric  END AS non_marine_surplus_reinsurance_agreement__extention_of_2008, CASE WHEN  (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Marine Cargo Excess of Loss Reinsurance  Contract&#8217;::text) THEN &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric END AS  marine_cargo_excess_of_loss_reinsurance_contract, CASE WHEN  (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Marine Cargo Excess of Loss Reinsurance  Contract (Extention of 2008)&#8217;::text) THEN &#8220;maintenance&#8221;.reassraw.a_rp ELSE  (0)::numeric END AS marinecargoxolreinsurancecontractextentionof2008, CASE WHEN  (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Non Marine Quota Share Reinsurance  Agreement&#8217;::text) THEN &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric END AS  non_marine_quota_share_reinsurance_agreement, CASE WHEN  (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Non Marine Quota Share Reinsurance  Agreement ( Extention of 2007)&#8217;::text) THEN &#8220;maintenance&#8221;.reassraw.a_rp ELSE  (0)::numeric END AS  non_marine_quota_share_reinsurance_agreement__extention_of_2007, CASE WHEN  (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Non Marine Quota Share Reinsurance  Agreement (Extention of 2008)&#8217;::text) THEN &#8220;maintenance&#8221;.reassraw.a_rp ELSE  (0)::numeric END AS  non_marine_quota_share_reinsurance_agreement__extention_of_2008, CASE WHEN  (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Riots, Strikes and Malicious Damage and  Natural Perils Excess of Loss Reinsurance Agreement&#8217;::text) THEN  &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric END AS  riotsstrikesandmaliciousdamageandnaturalperilsxolra, CASE WHEN  (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Riots, Strikes and Malicious Damage and  Natural Perils Excess of Loss Reinsurance Agreement (Extention of 2008)&#8217;::text)  THEN &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric END AS  riotsstrikesandmaliciousdamageandnaturalperilsxolraextof2008, CASE WHEN  (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Riots, Strikes and Malicious Damage  Excess of Loss Reinsurance Agreement&#8217;::text) THEN &#8220;maintenance&#8221;.reassraw.a_rp  ELSE (0)::numeric END AS riotsstrikesandmaliciousdamagexolra, CASE WHEN  (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Riots, Strikes and Malicious Damage  Excess of Loss Reinsurance Agreement (main layer)&#8217;::text) THEN  &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric END AS  riotsstrikesandmaliciousdamagexolramainlayer, CASE WHEN  (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Riots, Strikes and Malicious Damage  Excess of Loss Reinsurance Agreement (main layer) (Extention of 2008)&#8217;::text)  THEN &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric END AS  riotsstrikesandmaliciousdamagexolramainlayerextentionof2008, CASE WHEN  (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Risk and Catastrophe Excess of Loss  Reinsurance Agreement&#8217;::text) THEN &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric  END AS riskandcatastrophexolra, CASE WHEN (&#8220;maintenance&#8221;.reassraw.treaty_name =  &#8216;Risk and Catastrophe Excess of Loss Reinsurance Agreement (Extention of  2008)&#8217;::text) THEN &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric END AS  riskandcatastrophexolraextentionof2008, CASE WHEN  (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;RSMD and Natural Perils Excess of Loss  Reinsurance Agreement&#8217;::text) THEN &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric  END AS rsmdandnaturalperilsxolra, CASE WHEN (&#8220;maintenance&#8221;.reassraw.treaty_name  = &#8216;Terrorism and Sabotage Excess of Loss Reinsurance Agreement (sub  layer)&#8217;::text) THEN &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric END AS  terrorismandsabotagexolrasublayer FROM &#8220;maintenance&#8221;.reassraw ORDER BY  &#8220;maintenance&#8221;.reassraw.sales_number, &#8220;maintenance&#8221;.reassraw.treaty_type,  &#8220;maintenance&#8221;.reassraw.treaty_name, CASE WHEN  (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Badan Pusat Pengelolaan Data Asuransi  Nasional&#8217;::text) THEN &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric END, CASE  WHEN (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Combined non marine surplus  treaty&#8217;::text) THEN &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric END, CASE WHEN  (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Fire statistical cession reinsurance  treaty (BPPDAN)&#8217;::text) THEN &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric END,  CASE WHEN (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Indonesian standard earthquake  reinsurance (MAIPARK)&#8217;::text) THEN &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric  END, CASE WHEN (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;PT. Asuransi MAIPARK  Indonesia&#8217;::text) THEN &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric END, CASE  WHEN (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Non Marine Surplus Reinsurance  Agreement&#8217;::text) THEN &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric END, CASE  WHEN (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Non Marine Surplus Reinsurance  Agreement (Extention of 2008)&#8217;::text) THEN &#8220;maintenance&#8221;.reassraw.a_rp ELSE  (0)::numeric END, CASE WHEN (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Marine Cargo  Excess of Loss Reinsurance Contract&#8217;::text) THEN &#8220;maintenance&#8221;.reassraw.a_rp  ELSE (0)::numeric END, CASE WHEN (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Marine  Cargo Excess of Loss Reinsurance Contract (Extention of 2008)&#8217;::text) THEN  &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric END, CASE WHEN  (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Non Marine Quota Share Reinsurance  Agreement&#8217;::text) THEN &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric END, CASE  WHEN (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Non Marine Quota Share Reinsurance  Agreement ( Extention of 2007)&#8217;::text) THEN &#8220;maintenance&#8221;.reassraw.a_rp ELSE  (0)::numeric END, CASE WHEN (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Non Marine  Quota Share Reinsurance Agreement (Extention of 2008)&#8217;::text) THEN  &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric END, CASE WHEN  (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Riots, Strikes and Malicious Damage and  Natural Perils Excess of Loss Reinsurance Agreement&#8217;::text) THEN  &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric END, CASE WHEN  (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Riots, Strikes and Malicious Damage and  Natural Perils Excess of Loss Reinsurance Agreement (Extention of 2008)&#8217;::text)  THEN &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric END, CASE WHEN  (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Riots, Strikes and Malicious Damage  Excess of Loss Reinsurance Agreement&#8217;::text) THEN &#8220;maintenance&#8221;.reassraw.a_rp  ELSE (0)::numeric END, CASE WHEN (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Riots,  Strikes and Malicious Damage Excess of Loss Reinsurance Agreement (main  layer)&#8217;::text) THEN &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric END, CASE WHEN  (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Riots, Strikes and Malicious Damage  Excess of Loss Reinsurance Agreement (main layer) (Extention of 2008)&#8217;::text)  THEN &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric END, CASE WHEN  (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Risk and Catastrophe Excess of Loss  Reinsurance Agreement&#8217;::text) THEN &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric  END, CASE WHEN (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Risk and Catastrophe  Excess of Loss Reinsurance Agreement (Extention of 2008)&#8217;::text) THEN  &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric END, CASE WHEN  (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;RSMD and Natural Perils Excess of Loss  Reinsurance Agreement&#8217;::text) THEN &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric  END, CASE WHEN (&#8220;maintenance&#8221;.reassraw.treaty_name = &#8216;Terrorism and Sabotage  Excess of Loss Reinsurance Agreement (sub layer)&#8217;::text) THEN  &#8220;maintenance&#8221;.reassraw.a_rp ELSE (0)::numeric END) t GROUP BY  t.sales_number;</span></p></blockquote>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[:(]]></title>
<link>http://zhas.wordpress.com/2009/11/19/651/</link>
<pubDate>Thu, 19 Nov 2009 08:48:27 +0000</pubDate>
<dc:creator>zhas</dc:creator>
<guid>http://zhas.wordpress.com/2009/11/19/651/</guid>
<description><![CDATA[i&#8217;ve heard some rumors about our department.  i just got back today, this morning. and banyak ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:justify;">i&#8217;ve heard some rumors about our department.  i just got back today, this morning. and banyak sekali news yang sedih. i&#8217;ll be devastated kalau sungguh ianya happen. i&#8217;ll be sad. i don&#8217;t think i can even accept it. i just wish.. semuanya salah. that kami akan &#8217;selamat&#8217;. at least buat masa sekarang. i can&#8217;t afford to take any.. anything.. i&#8217;ll just be sad kalau sungguh ianya jadi&#8230;</p>
<p style="text-align:justify;">i wonder. kalau la sungguh u&#8217;re so called orang besar. kenapa lah anda tidak berfikir sebelum buat keputusan. kenapa?</p>
<p style="text-align:justify;">and sharon&#8217;s leaving to subang. and all my files are still with her. i dont know about my status here. i&#8217;m yet to be confirm. well half-ly i am. but the other half. i just cant say it yet.. why is this happening to me..</p>
<p style="text-align:justify;">and another thing. amir also halfway leaving this dec..</p>
<p style="text-align:justify;">why semua harus diberitahu today..</p>
<p style="text-align:justify;"> <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Query SELECT untuk record yang mengandung apostropi (')]]></title>
<link>http://ndereklangkung.wordpress.com/2009/11/19/query-select-untuk-record-yang-mengandung-apostropi-2/</link>
<pubDate>Thu, 19 Nov 2009 02:06:18 +0000</pubDate>
<dc:creator>ndereklangkung</dc:creator>
<guid>http://ndereklangkung.wordpress.com/2009/11/19/query-select-untuk-record-yang-mengandung-apostropi-2/</guid>
<description><![CDATA[Sebenarnya aku kurang begitu jago soal SQL Query. Yang aku bisa baru sebatas level &#8216;permukaan]]></description>
<content:encoded><![CDATA[Sebenarnya aku kurang begitu jago soal SQL Query. Yang aku bisa baru sebatas level &#8216;permukaan]]></content:encoded>
</item>
<item>
<title><![CDATA[FUNÇÕES: Somente Números (com CTE)]]></title>
<link>http://sqlfromhell.wordpress.com/2009/11/18/somente-numeros-com-cte/</link>
<pubDate>Thu, 19 Nov 2009 01:00:22 +0000</pubDate>
<dc:creator>Paulo R. Pereira</dc:creator>
<guid>http://sqlfromhell.wordpress.com/2009/11/18/somente-numeros-com-cte/</guid>
<description><![CDATA[Boa noite pessoal! Continuando o artigo anterior, vou demonstrar como recuperar somente os valores n]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Boa noite pessoal!</p>
<p>Continuando o artigo anterior, vou demonstrar como recuperar somente os valores numéricos de um texto, agora com CTE. </p>
<p>Para começar, tenho o mesmo cenário do artigo anterior, uma variável com um texto absurdo, da qual desejo somente retornar os valores numéricos. </p>
<div style="border:1px;background-color:#000000;color:#ffffff;font-weight:bold;border-color:#ffffff;margin:5px;padding:5px;"><code>DECLARE @PALAVRA VARCHAR(8000)<br />
SET @PALAVRA = 'Yield 96%, white crystals, mp 104 °C (acetonitrile). δH (DMSO-d6): 5.40 (1H, s, H-2), 6.54 (2H, d, J45=J89=7.8 Hz, H-4, H-9), 7.02 (2H, d, J56=J78=8.0 Hz'<br />
</code></div>
<p>Como estou utilizando CTE, não tenho necessidade de muitas variáveis.</p>
<div style="border:1px;background-color:#000000;color:#ffffff;font-weight:bold;border-color:#ffffff;margin:5px;padding:5px;"><code>DECLARE<br />
  @RESULTADO VARCHAR (8000),<br />
  @ZERO INT,<br />
  @NOVE INT<br />
</code></div>
<p>Mas ainda continuo a ter a necessidade das variáveis que delimitam o RANGE dos valores numéricos, no caso os &#8216;valores decimais&#8217; dos caracteres 0 (zero) e 9 (nove):</p>
<div style="border:1px;background-color:#000000;color:#ffffff;font-weight:bold;border-color:#ffffff;margin:5px;padding:5px;"><code>SELECT<br />
  @ZERO = UNICODE(0),<br />
  @NOVE = UNICODE(9)<br />
</code></div>
<p>Com a primeira CTE, realizo crio a relação de um a um dos caracteres do meu texto (um caractere por linha). Na segunda CTE, aplico a validação do RANGE de cada um dos caracteres relacionados na primeira CTE.</p>
<div style="border:1px;background-color:#000000;color:#ffffff;font-weight:bold;border-color:#ffffff;margin:5px;padding:5px;"><code>;WITH SPLIT AS<br />
(<br />
  SELECT 1 AS ID, SUBSTRING(@PALAVRA, 1, 1) AS LETRA<br />
  UNION ALL<br />
  SELECT ID + 1, SUBSTRING(@PALAVRA, ID + 1, 1)<br />
  FROM SPLIT<br />
  WHERE ID &#60; LEN(@PALAVRA)<br />
)<br />
, NUMEROS AS<br />
(<br />
  SELECT LETRA<br />
  FROM SPLIT<br />
  WHERE UNICODE(LETRA) BETWEEN @ZERO AND @NOVE<br />
)<br />
</code></div>
<p>Por fim, utilizo uma query para concatenar os valores resultantes da segunda CTE, adicionando o HINT MAXRECURSION, para evitar que um texto com mais de 100 caracteres prejudique minha operação.</p>
<div style="border:1px;background-color:#000000;color:#ffffff;font-weight:bold;border-color:#ffffff;margin:5px;padding:5px;"><code>SELECT @RESULTADO = (SELECT LETRA + '' FROM NUMEROS FOR XML PATH(''))<br />
OPTION(MAXRECURSION 8000)<br />
</code></div>
<p>No próximo artigo trarei a validação de CPF e CNPJ em uma única operação (e de forma otimizada).</p>
<p><strong>Disponíveis para download:</strong></p>
<p>Função SOMENTE_NUMEROS (com CTE):<br />
<a href="http://www.4shared.com/file/152602089/d1b4b224/SOMENTE_NUMEROS_-_CTE_-_Func.html" target="_blank">http://www.4shared.com/file/152602089/d1b4b224/SOMENTE_NUMEROS_-_CTE_-_Func.html</a></p>
<p>Função SOMENTE_NUMEROS (com WHILE):<br />
<a href="http://www.4shared.com/file/152602109/18af521b/SOMENTE_NUMEROS_-_WHILE_-_Func.html" target="_blank">http://www.4shared.com/file/152602109/18af521b/SOMENTE_NUMEROS_-_WHILE_-_Func.html</a></p>
<p><strong>Artigos relacionados:</strong></p>
<p>CTE &#8211; Introdução:<br />
<a href="http://sqlfromhell.wordpress.com/2009/09/20/cte-introducao/">http://sqlfromhell.wordpress.com/2009/09/20/cte-introducao/</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[LINQ Group By With Multiple Aggregates]]></title>
<link>http://goldmanalpha.wordpress.com/2009/11/18/linq-group-by-with-multiple-aggregates/</link>
<pubDate>Wed, 18 Nov 2009 22:54:54 +0000</pubDate>
<dc:creator>goldmanalpha</dc:creator>
<guid>http://goldmanalpha.wordpress.com/2009/11/18/linq-group-by-with-multiple-aggregates/</guid>
<description><![CDATA[It appears that LINQ does not support a query that outputs multiple group by aggregate fields.  For ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>It appears that LINQ does not support a query that outputs multiple group by aggregate fields.  For example, there’s Min() and a Max() functions, so to get both min &#38; max from a list, you seem to need to make 2 LINQ queries:</p>
<div style="font-family:courier new;background:white;color:black;font-size:10pt;">
<pre style="margin:0;"> <span style="color:blue;">var</span> min = (<span style="color:blue;">from</span> d <span style="color:blue;">in</span> data <span style="color:blue;">select</span> d).Min();</pre>
<pre style="margin:0;"> <span style="color:blue;">var</span> max = (<span style="color:blue;">from</span> d <span style="color:blue;">in</span> data <span style="color:blue;">select</span> d).Max();</pre>
</div>
<p>In SQL, the 2 values would pop out easily from a single query:</p>
<div style="font-family:courier new;background:white;color:black;font-size:10pt;">
<pre style="margin:0;"><span style="color:blue;"> Select min</span>(<span style="color:blue;">d</span>), <span style="color:blue;">max</span>(<span style="color:blue;">d</span>) <span style="color:blue;">from </span>data</pre>
</div>
<div style="font-family:courier new;background:white;color:black;font-size:10pt;"></div>
<p>LINQ has all the power of SQL and works similarly, just the syntax is different.  To achieve this result we have to use a group by.  But we’ll be grouping by nothing, including all items in the set in a single bucket. I usually group by “1”, which makes a single grouping of all the elements (grouping by any single object will do the same):</p>
<div style="font-family:courier new;background:white;color:black;font-size:10pt;">
<pre style="margin:0;"> <span style="color:blue;">var</span> minMax = <span style="color:blue;">from</span> d <span style="color:blue;">in</span> values</pre>
<pre style="margin:0;">    <span style="color:blue;">group</span> d <span style="color:blue;">by</span> 1 <span style="color:blue;">into</span> g</pre>
<pre style="margin:0;">    <span style="color:blue;">select</span> <span style="color:blue;">new</span> { Min = g.Min(x =&#62; x),</pre>
<pre style="margin:0;">     Max = g.Max(x =&#62; x) };</pre>
<p>&#160;</p>
<p>minMax.First() now contains the min and max for the set of values.</p>
</div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Microsoft Access]]></title>
<link>http://bahamablonde.wordpress.com/2009/11/18/microsoft-access/</link>
<pubDate>Wed, 18 Nov 2009 22:42:06 +0000</pubDate>
<dc:creator>bahamablonde</dc:creator>
<guid>http://bahamablonde.wordpress.com/2009/11/18/microsoft-access/</guid>
<description><![CDATA[&nbsp; damn you access &nbsp; &nbsp; Does ANYONE out there know how to use Microsoft Access???? Good]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>&#160;</p>
<div id="attachment_291" class="wp-caption aligncenter" style="width: 310px"><a href="http://bahamablonde.wordpress.com/files/2009/11/microsoft_access_2007_training.jpg"><img class="size-medium wp-image-291" title="microsoft_access_2007_training" src="http://bahamablonde.wordpress.com/files/2009/11/microsoft_access_2007_training.jpg?w=300" alt="" width="300" height="163" /></a><p class="wp-caption-text">damn you access</p></div>
<p>&#160;</p>
<p>&#160;</p>
<p>Does <strong><em>ANYONE</em></strong> out there know how to use Microsoft Access???? Good God. That programme is <em>so</em> complicated. It doesn&#8217;t <em>look</em> complicated, cuz it looks just like any other MS Office tool, but <em>geez</em> man!</p>
<p>I&#8217;m <em><strong>trying</strong></em> to create a database for work, to keep track of Scientific Research Permit Applications, but it&#8217;s a lot harder than it sounds. I want to create it in such a way, that it can be queried to give us snapshots of certain information likeeee how many permits have been issued in the last 6 months, or where in The Bahamas research is going on, orrrr the nature of the ongoing research (ie: marine, geology, terrestrial, bla bla)</p>
<p>Anyway, it seems like I&#8217;m almost there, but the form I&#8217;m creating isn&#8217;t working properly. Sigh. So frustrating.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Apakah BI itu?]]></title>
<link>http://yoyonb.wordpress.com/2009/11/19/apakah-bi-itu/</link>
<pubDate>Wed, 18 Nov 2009 20:39:43 +0000</pubDate>
<dc:creator>Ardijan Abu Hanifah</dc:creator>
<guid>http://yoyonb.wordpress.com/2009/11/19/apakah-bi-itu/</guid>
<description><![CDATA[BI atau Business Intelligence yang telah tumbuh pesat dalam satu dasawarsa terakhir mempunyai arti y]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>BI atau Business Intelligence yang telah tumbuh pesat dalam satu dasawarsa terakhir mempunyai arti yang luas.<br />
Pada awalnya BI hanya menyangkut pada database Customer saja, namun sekarang telah meluas pada semua segi dari suatu bisnis.</p>
<p>Sebenarnya tujuan BI menyangkut dua hal penting:</p>
<p>	- <strong>Data Integration</strong>, yang berarti menarik data dari berbagai sumber data yang terpisah-pisah dalam berbagai format data, dari berbagai Database lalu disimpan pada satu Database dan membuatnya dapat di access dengan mudah dengan cara yang seragam. Database ini biasa disebut dengan <a href="http://yoyonb.wordpress.com/2009/11/20/apakah-data-warehouse-itu/">Data Warehouse</a>.</p>
<p>       &#8211; <strong>Analysing and Viewing</strong>, yang berarti menyediakan cara untuk menampilkan dan melakukan analisa data dengan cara yang baru dan menampilkan informasi yang sebelumnya tersembunyi. Aplikasi untuk keperluan ini biasa disebut dengan BI Application.</p>
<p>Tujuan tersebut telah dikembangkan selama bertahun-tahun. Awalnya tampak seperti alat untuk market research,&#160; untuk mengentahui karakteristik Customer, untuk menemukan pola-pola dalam Pendapatan dan Keuntungan, atau untuk memahami perilaku Customer, namun saat ini tool yang sama juga dipakai untuk melihat berbagai aspek bisnis.</p>
<p>Istilah BI sendiri pertama kalinya diperkenalkan oleh Howard Dresner dari Gartner Group pada tahun 1989 dengan defenisi<br />
sbb.:</p>
<p><strong><em> “Business Intelligence is a set of concepts and methodologies to improve&#160; decision-making in business through the use of facts and fact-based systems” </em></strong></p>
<p>Menurutnya BI adalah sekumpulan konsep dan methodologi untuk meningkatkan pengambilan keputusan dalam bisnis dengan cara menggunakan fakta dan sistem yang berdasarkan fakta.</p>
<p>Bahan dasar dari BI adalah semua transaksi individu, dan data diambil dari berbagai sisi bisnis. Dengan BI setiap detail data bisa diambil namun akan disimpan dengan menggunakan struktur data yang baru sehingga detail tersebut dapat di access dari berbagai sudut pandang. Sehingga untuk setiap pertanyaan bisnis BI akan dapat memberikan jawaban secara tepat dan cepat.</p>
<p>BI akan memberikan sudut pandang bisnis dengan detail yang belum pernah ada sebelumnya. Hal itu dapat dicapai dengan cara merestrukturisasi informasi dengan tepat yang dibutuhkan oleh setiap fungsi kerja, apakah fungsi kerja tersebut adalah market research,<br />
quality assurance, general management atau fungsi kerja yang lain.</p>
<p>Fungsi-fungsi BI yang lain adalah;</p>
<p>-BI memungkinkan pebisnis untuk melihat kinerja bisnisnya dari berbagai sudut pandang, tidak hanya dari sisi accounting belaka.<br />
-Untuk mengetahui pola belanja customer<br />
-Untuk mengungkap hubungan antara suatu kejadian dengan kinerja dagang.<br />
-Untuk melihat dampak nyata dari suatu promosi selagi masih berlangsung.<br />
-Untuk mengungkap penipuan dan pemborosan yang tak berguna.<br />
-Untuk melihat suatu problem selagi dibenahi</p>
<p>Singkatnya, BI memungkinkan untuk memanfaatkan nilai yang ada secara detail</p>
<p><strong>Teknologi apa saja yang digunakan BI?</strong></p>
<p><strong>ETL Tool:</strong><br />
Agar data dari berbagai sumber data dapat di access, maka diperlukan teknologi yang bisa connect ke berbagai Database di berbagai platform. Proses ini meliputi Collection, Cleansing, Extraction, Transformation, and Loading, Tool yang menyediakan fungsi-fungsi ini biasa disebut ETL Tool. Ada berbagai macam ETL tool yang tersedia di pasar, tersebar dngan bebagai kelebihan fungsi dengan harga yang beragam juga.</p>
<p><strong>OLAP Engine:</strong><br />
Agar suatu data dapat dilihat dan di analisa dari berbagai sudut pandang, maka data tersebut perlu disimpan dengan struktur multi dimensi, atau yang disebut dengan Multidimensional database. Untuk&#160; mempercepat query dan analisa maka semua relasi data perlu disimpan dalam group-group dari item-item data yang behubungan, disimpan juga Jumlah item yg berhubungan, dan agregasi dari kuantitas data yang&#160; berhubungan. Semua fungsi ini akan ditangani oleh OLAP Engine.<br />
(Lebih jauh mengenai OLAP akan dibahas pada sesi tersendiri)</p>
<p><strong>Query Tool:</strong><br />
Setelah data disimpan dalam Multidimensional Database, untuk menampilkannya diperlukan tool khusus yang dapat melakukan<br />
berbagai query multi dimensi. Tool ini dapat membuat rumusan query multi dimensi yang kompleks dengan cara yang sederhana<br />
tool ini biasa disebut dengan Query Tool. Beberapa produk Query Tool dipasaran telah dilengkapi juga dengan OLAP Browser<br />
bahkan ada yang di paket dengan Reporting Tool.</p>
<p><strong>Reporting Tool:</strong><br />
Pada Multidimensional Database reporting tool yang dipakai juga harus bisa membaca data multi dimensi.<br />
Pada umumnya Reporting Tool bisa dijalankan dengan cara visual desain dan sudah dilengkapi dengan OLAP Browser.<br />
Report dapat diexport dalam berbagai format sperti format CSV,&#160; PDF file atau PPT file untuk keperluan presentasi.<br />
Beberpa Reporting Tool di pasaran bahkan ada yang dilengkapi dengan Distribution Utility dan Schedulling.</p>
<p><a href="http://yoyonb.wordpress.com/files/2009/11/business_intelligence_screenshot3.png"><img src="http://yoyonb.wordpress.com/files/2009/11/business_intelligence_screenshot3.png?w=300" alt="" title="business_intelligence_screenshot" class="aligncenter size-medium wp-image-40" height="180" width="300"></a></p>
<p><strong>Dashboarding Tool:</strong><br />
Informasi yang disampaikan untuk para pengambil keputusan biasanya tidak ditampilkan dalam angka-angka dalam tabel,<br />
namun dalam bentuk grafik-grafik interaktif untuk mempermudah dan mempercepat pengambilan keputusan. Tool yang mempunyai kemampuan ini disebut dengan Dashboarding Tool.<br />
Dashboarding Tool dilengkapi dengan berbagai macam grafik seperti Bar Chart, Pie Chart, Gauge Chart, dll. baik 2D maupun 3D,</p>
<p>Disamping Tool utama yang sudah disebut diatas, sebenarnya masih ada beberapa tool lagi yang biasa dipakai baik oleh BI Developer ataupun oleh BI User. Mengenai hal ini akan dibahas disesi lain.</p>
<p>Reff:<br />
Tiwana, Amrit, 2001. <strong><em>The Essential Guide to Knowledge Management</em></strong>, New York,USA, Prentice Hall<br />
Kimbal, Ralp, 1996, <strong><em>The Data Warehouse Toolkit</em></strong>, New York-USA,&#160; Jhon Wiley &#38; Sons, Inc.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[ Patents: Microsoft cap a fine of 388 million dollars ]]></title>
<link>http://scriptforall.wordpress.com/2009/11/18/patents-microsoft-cap-a-fine-of-388-million-dollars/</link>
<pubDate>Wed, 18 Nov 2009 17:09:08 +0000</pubDate>
<dc:creator>kostland</dc:creator>
<guid>http://scriptforall.wordpress.com/2009/11/18/patents-microsoft-cap-a-fine-of-388-million-dollars/</guid>
<description><![CDATA[D `access condamn for violation of patent, Microsoft has finally T jug not culprit in call by a cour]]></description>
<content:encoded><![CDATA[D `access condamn for violation of patent, Microsoft has finally T jug not culprit in call by a cour]]></content:encoded>
</item>
<item>
<title><![CDATA[Problema com datetime do MySql e PHP]]></title>
<link>http://dilbertorosa.wordpress.com/2009/11/18/problema-com-datetime-do-mysql-e-php/</link>
<pubDate>Wed, 18 Nov 2009 11:43:24 +0000</pubDate>
<dc:creator>dilbertorosa</dc:creator>
<guid>http://dilbertorosa.wordpress.com/2009/11/18/problema-com-datetime-do-mysql-e-php/</guid>
<description><![CDATA[Hoje Eu e a Luciane enfrentamos um problema: Realizar um select em um campo datetime do MySql. Parec]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Hoje Eu e a Luciane enfrentamos um problema: Realizar um select em um campo datetime do MySql. Parece simples? Mas não foi!</p>
<p>Em nossas consultas sempre realizamos pesquisas no banco de dados com campos do tipo datetime, porém nunca enfrentamos a situação em que o resultado sempre vinha vazio sendo que temos dados em banco. Desta forma começamos a perguntar: Porque o aqua (nossa ferramenta para consultas à banco de dados) não traz o resultado?</p>
<p>Nosso select no aqua era o seguinte:<br />
<strong><br />
select * from tabela where campo_data = current_date</strong></p>
<p>Bom, normalmente, para outras consultas esse comando sql funcionaria. Desta vez não foi bem assim.</p>
<p>Dando uma analisada no conteúdo da tabela no banco, identificamos as seguintes datas:</p>
<p>16/11/2009 11:39:00<br />
16/11/2009 10:30:03</p>
<p>Desta forma, podemos identificar que, apesar de serem mesmas datas, o datetime permite gravação de hora, minuto e segundos. Essa foi a primeira pista.</p>
<p>A segundo pergunta foi: Como estão sendo gravados estes dados?</p>
<p>Identificamos que no PHP, na realização do insert em banco de dados, o programador pegou a data atual com o seguinte comando: &#8220;now&#8221;. Agora temos a segunda pista. O comando &#8220;now&#8221; do PHP traz a data atual, acompanhada de hora, minuto e segundos! Assim, quando era realizado insert em banco, era gravado a data com a hora atual, porém na busca estavamos utilizando apenas a data. O resultado do SQL era vazio pois a data era a mesma mas a hora não.</p>
<p>Como resolver?</p>
<p>A idéia inicial foi alterar a função PHP de &#8216;now&#8217; para date(&#8216;Y-m-d&#8217;). E deu certo!</p>
<p>Ao utilizar a função &#8220;date&#8221;, o PHP grava a data no campo, com a hora zerada. Desta forma a consulta sql desconsidera a hora para aquela linha, trazendo o registro. É isso!</p>
<p>Abraço.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Stearns: Wordpress Custom Queries]]></title>
<link>http://tobymackenzie.wordpress.com/2009/11/18/stearns-wordpress-custom-queries/</link>
<pubDate>Wed, 18 Nov 2009 11:30:04 +0000</pubDate>
<dc:creator>tobymackenzie</dc:creator>
<guid>http://tobymackenzie.wordpress.com/2009/11/18/stearns-wordpress-custom-queries/</guid>
<description><![CDATA[For the Stearns site, we need to list upcoming events on the home page.  Using Flutter, I created a ]]></description>
<content:encoded><![CDATA[For the Stearns site, we need to list upcoming events on the home page.  Using Flutter, I created a ]]></content:encoded>
</item>
<item>
<title><![CDATA[How not to query]]></title>
<link>http://moondancebooks.wordpress.com/2009/11/18/how-not-to-query/</link>
<pubDate>Wed, 18 Nov 2009 06:58:29 +0000</pubDate>
<dc:creator>sjefferies</dc:creator>
<guid>http://moondancebooks.wordpress.com/2009/11/18/how-not-to-query/</guid>
<description><![CDATA[Sending work to a publisher or a literary agent should be the culmination of hours of work polishing]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Sending work to a publisher or a literary agent should be the culmination of hours of work polishing, and lovingly tending to your manuscript to make sure that it&#8217;s well-edited, and reading it is like gliding a hot knife through butter.</p>
<p>This is the theory.</p>
<p>Here is the reality.</p>
<p>1. Spelling. In the query letter itself, I&#8217;ve borne witness to some of the worst spelling gaffes imaginable. &#8220;Exiting story&#8221;, &#8220;expect mirikles&#8221; and &#8220;flare for writing&#8221;. The problem with a spelling error is once I&#8217;ve spotted one, I tend to dwell on it. It&#8217;s as if my eyes scan the remaining text, but my attention is firmly focused on the spelling error. Second or third language English speakers aside, poor spelling in the query letter, sample chapters or synopsis is a no-no of epic proportions.</p>
<p>2. Grammar. I&#8217;m the first to admit that my own writing tends to need an editor to check for grammatical inconsistencies. Although I&#8217;m able to pick up other&#8217;s grammar faux pas, I&#8217;m not as adept at my own. Don&#8217;t be proud. Send your work to an editor. Someone who gets paid, in actual cash, to edit work. And to all those who wish to break the conventional grammatical mould by doing something avant-garde, do so at your peril. Only attempt if your knowledge of the English language and its intracacies rival that of Shakespeare himself. Otherwise stick to convention.</p>
<p>3. The pitch. Yes you have to sell your book to a certain extent. Tell me why it&#8217;s different. Show me how your writing is original, unique, a literary voice that is in need of publishing on a grand scale. Refrain from telling me how fabulous your sister/aunt/mother/best friend from way back thought the book was. And that they&#8217;d be happy to recommend it. Please do not refer to your book in hyperbole &#8211; the best book ever written, the most exciting. Hype is just that.</p>
<p>4. Read the instructions. I ask for 3 sample chapters. Instead, from one aspirant non-fiction writer, I got a paragraph from the introduction. I ask for a brief bio on the author, and I get school day accolades. Publishers don&#8217;t put in instructions for fun. They&#8217;re there so we can make the best possible decision about your manuscript. Providing half the information, or the wrong information shows me you can&#8217;t even be bothered to read properly.</p>
<p>5. Learn to accept no. Publishers might well pass on your work. That is life. We don&#8217;t get every job we are interviewed for, we don&#8217;t get marriage proposals from everyone we date. Publishing is no different. It&#8217;s an alchemic, magical blend of timing, passion and best fit. If you&#8217;re a writer you&#8217;ll keep persisting. Take a note out of Stephen King&#8217;s book &#8216;On Writing&#8217;. He got hundreds of rejection slips. Did he throw a hissy fit or chuck away his typewriter? No, he learnt how to make his writing better.</p>
<p>All of that aside, I&#8217;m enjoying working through some potential scripts. Publishers need writers. Remember that.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[FUNÇÕES: Somente Números (com WHILE)]]></title>
<link>http://sqlfromhell.wordpress.com/2009/11/17/somente-numeros-com-while/</link>
<pubDate>Wed, 18 Nov 2009 01:25:40 +0000</pubDate>
<dc:creator>Paulo R. Pereira</dc:creator>
<guid>http://sqlfromhell.wordpress.com/2009/11/17/somente-numeros-com-while/</guid>
<description><![CDATA[Boa noite pessoal! Para filtrar um texto, deixando somente os valores numéricos, pensei em realizar ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Boa noite pessoal!</p>
<p>Para filtrar um texto, deixando somente os valores numéricos, pensei em realizar de duas formas, a primeira com WHILE e outra com CTE, mas como CTE se torna um pouco complexo para alguns, vou começar com WHILE:</p>
<p>Primeiro tenho meu texto, no caso estou utilizando a variável @PALAVRAS com um texto que encontrei na internet.</p>
<div style="border:1px;background-color:#000000;color:#ffffff;font-weight:bold;border-color:#ffffff;margin:5px;padding:5px;"><code>DECLARE @PALAVRA VARCHAR(8000)<br />
SET @PALAVRA = 'Yield 96%, white crystals, mp 104 °C (acetonitrile). δH (DMSO-d6): 5.40 (1H, s, H-2), 6.54 (2H, d, J45=J89=7.8 Hz, H-4, H-9), 7.02 (2H, d, J56=J78=8.0 Hz'<br />
</code></div>
<p>Tendo o texto, vou definir quais as variáveis que vou utilizar, assim tenho uma variável onde salvarei o resultado (@RESULTADO) da operação, uma variável para armazenar uma a uma as &#8217;letras&#8217; (@LETRA) da operação, uma variável para saber quantas &#8216;letras&#8217; tenho no texto (@NUMERO) e outra para controle dos &#8216;loops&#8217; da operação (@CONT).</p>
<div style="border:1px;background-color:#000000;color:#ffffff;font-weight:bold;border-color:#ffffff;margin:5px;padding:5px;"><code>DECLARE<br />
  @RESULTADO VARCHAR (8000),<br />
  @LETRA CHAR(1),<br />
  @NUMERO INT,<br />
  @CONT INT,<br />
  @ZERO INT,<br />
  @NOVE INT<br />
</code></div>
<p>Esqueci de dizem que é @ZERO e @NOVE, bem&#8230; elas irão armazenar os valores que identifica range inicial e final dos valores numéricos, no caso 0 (zero) e o 9 (nove) respectivamente.  A função UNICODE retorna o &#8216;valor decimal&#8217; de um determinado caractere.</p>
<p>Uma observação importante é o valor inicial de @RESULTADO, pois como o valor inicial das variáveis é NULL, NULL somado a qualquer outros valor, nas configurações padrões do T-SQL, tem como resultado NULL, então precisamos estipular o valor inicial dele, assim como das outras variáveis.</p>
<div style="border:1px;background-color:#000000;color:#ffffff;font-weight:bold;border-color:#ffffff;margin:5px;padding:5px;"><code>SELECT<br />
  @RESULTADO = '',<br />
  @CONT = 0,<br />
  @ZERO = UNICODE(0),<br />
  @NOVE = UNICODE(9),<br />
  @NUMERO = LEN(@PALAVRA)<br />
</code></div>
<p>Vamos agora ao laço de repetição, que percorrerá uma a uma as letras.</p>
<div style="border:1px;background-color:#000000;color:#ffffff;font-weight:bold;border-color:#ffffff;margin:5px;padding:5px;"><code>WHILE @CONT &#60; @NUMERO<br />
BEGIN<br />
  SET @CONT = @CONT + 1<br />
  SET @LETRA = SUBSTRING(@PALAVRA, @CONT, 1)<br />
</code></div>
<p>Agora temos a validação, onde verifico se a variável @LETRA esta em 0 (zero) e 9 (nove). Utilizando novamente a função UNICODE, que retorna o &#8216;valor decimal&#8217; de um caractere.</p>
<div style="border:1px;background-color:#000000;color:#ffffff;font-weight:bold;border-color:#ffffff;margin:5px;padding:5px;"><code>  IF UNICODE(@LETRA) BETWEEN @ZERO AND @NOVE<br />
  BEGIN<br />
    SET @RESULTADO = @RESULTADO + @LETRA<br />
  END<br />
END<br />
</code></div>
<p>Agora temos a primeira solução. No próximo artigo estarei detalhando a forma de realizar esta operação com CTE.</p>
<p><strong>Disponíveis para download:</strong></p>
<p>Função SOMENTE_NUMEROS (com WHILE):<br />
<a href="http://www.4shared.com/file/152602109/18af521b/SOMENTE_NUMEROS_-_WHILE_-_Func.html" target="_blank">http://www.4shared.com/file/152602109/18af521b/SOMENTE_NUMEROS_-_WHILE_-_Func.html</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[SubQuery]]></title>
<link>http://plusplus.wordpress.com/2009/11/18/sub-query/</link>
<pubDate>Tue, 17 Nov 2009 23:53:34 +0000</pubDate>
<dc:creator>plusplus</dc:creator>
<guid>http://plusplus.wordpress.com/2009/11/18/sub-query/</guid>
<description><![CDATA[You can only do correlate subqueries in SELECT and WHERE clauses. So, a subquery in FROM clause does]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>You can only do correlate subqueries in SELECT and WHERE clauses.</p>
<p>So, a subquery in FROM clause does not have access to the outer select.</p>
<pre>select 	"Damage" , "IdAttackerWeapon" as w,
	(select sum(dd)
	from
		(select "Damage", "IdAttackerWeapon", abs(("Damage" - t."Damage")) as dd
		from fact_eventplayerdamage order by dd asc limit 5)
	t1)
from fact_eventplayerdamage t
group by "Damage", w</pre>
<p>&#8211;</p>
<p>Reza</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Query Me This...My Queries]]></title>
<link>http://justwritecat.wordpress.com/2009/11/17/query-me-this-my-queries/</link>
<pubDate>Tue, 17 Nov 2009 23:04:29 +0000</pubDate>
<dc:creator>justwritecat</dc:creator>
<guid>http://justwritecat.wordpress.com/2009/11/17/query-me-this-my-queries/</guid>
<description><![CDATA[As promised, below are the before and after queries.  I sent the first one out to two agents, both p]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>As promised, below are the before and after queries.  I sent the first one out to two agents, both passed.  Looking back, I&#8217;m not amazed by that fact.  More like upset with myself for sending out a clearly not-yet-ready query.  I thought it was&#8230;but I was wrong.</p>
<p> <strong>The Before:</strong></p>
<p><strong>(note that I included a couple of lines customized to the agent, not included here)</strong></p>
<p>Medical examiner Joe Cooper is a vampire with an insatiable appetite for booze, blood and women—and a hunger for justice. </p>
<p>Joe would rather be drinking scotch.  Instead he’s up to his fangs in murdered Innocents, partnered with a suck-up profiler sent by the Council, and chasing rogue vampires on a killing spree during Baltimore’s peak tourist season.  Using his vampiristic abilities and skills acquired as a medical examiner, Joe tracks down the vamps responsible for the murders.  When he does, he discovers there’s more at stake than a group of bloodsuckers hell-bent on breaking all the laws that govern his kind.  And that the vampire calling the shots is the same one who turned him sixty years ago—a female with the darkest of blood running through her veins.  As the story draws to a close, Joe realizes that before you can knock down all your demons, you have to SET ‘EM UP, JOE. </p>
<p>My 92,000 word manuscript, SET ‘EM UP, JOE, is an urban fantasy similar in style to Richelle Mead’s Dark Swan series; with flavors of noir similar to those found in The Dresden Files by Jim Butcher.  It is my first novel and the first of a proposed five book series featuring Joe Cooper. </p>
<p>May I send my manuscript for your consideration?</p>
<p>Thank you for your time, </p>
<p>Catherine Misener  (contact information was included with query)</p>
<p>I&#8217;m going to comment on why I think this one didn&#8217;t work, but first: </p>
<p><strong>The After</strong></p>
<p><strong>Dear,</strong> (again, I included a few lines customized to each agent I queried.  More on this when I compare the two queries.)</p>
<p>SET ‘EM UP, JOE is a 92,700 word paranormal noir similar in style to Jim Butcher’s The Dresden Files.  It is my first novel.</p>
<p>Being undead has its perks.  And for medical examiner Joe Cooper those include inhuman strength, good looks to spare, and the ability to get what he wants from any woman, anywhere, anytime.  Joe’s a vampire with a lust for booze, blood and the fairer sex.  And while Joe could spend all his nights with one hand on a bottle of scotch and the other on some curvy dame, being a member of the walking damned does carry baggage.  That tug on his conscience that for every ounce of blood he takes, he should give a little something back.  So to his other appetites, add a hunger for justice. </p>
<p>Sure, Joe likes his blood direct from the source—and that doesn’t mean cud-chewing cows or big-eyed deer—but in his world, that doesn’t mean his mark has to die.  Take what you need and never leave the human worse for wear.  When others of his kind fail to follow that dictum, Joe doesn’t hesitate to point out the folly of their ways.  And in Baltimore, the latest place Joe calls home, more than one rogue vamp needs redirection. </p>
<p>In this novel—the first of a proposed five book series—Joe finds himself up to his fangs in murdered Innocents and chasing rogue vampires on a killing spree during Charm City’s peak tourist season.  Using his vampiristic abilities and skills acquired as a medical examiner, Joe tracks down the vamps responsible for the murders.  When he does, he discovers there’s more at stake than a group of bloodsuckers hell-bent on breaking all the laws that govern his kind.  And that the vampire calling the shots is the same one who has hunted him for decades, the same one who turned him sixty years ago—a female with the darkest of blood running through her veins.  A nasty bit of goods he’s done everything he could to avoid, but the time for running is over.  Joe soon realizes that before you can knock down all your demons, you have to SET ‘EM UP, JOE. </p>
<p>May I send you my manuscript for consideration? </p>
<p>Thank you for your time, </p>
<p>Catherine Misener (contact information, plus personal and character blogs included)</p>
<p>And there you go&#8230;two queries.  My thoughts on why I feel the second one is better, and the thought process behind my query next!</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Query Me This (Query Tips From Expert Wendy Burt-Thomas)]]></title>
<link>http://georgiamcbridebooks.wordpress.com/2009/11/17/query-me-this-query-tips-from-expert-wendy-burt-thomas/</link>
<pubDate>Tue, 17 Nov 2009 18:29:56 +0000</pubDate>
<dc:creator>georgiamcbridebooks</dc:creator>
<guid>http://georgiamcbridebooks.wordpress.com/2009/11/17/query-me-this-query-tips-from-expert-wendy-burt-thomas/</guid>
<description><![CDATA[Wendy Burt-Thomas’s new book THE WRITER&#8217;S DIGEST GUIDE TO QUERY LETTERS was released in Januar]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Wendy Burt-Thomas’s new book THE WRITER&#8217;S DIGEST GUIDE TO QUERY LETTERS was released in January 2009. Wendy was nice enough to share an interview she did while on a blog tour to promote her book with our #YAlitchat family. I hope you enjoy the interview. You can also visit Wendy online at <a href="http://www.AskWendy.wordpress.com" target="_blank">www.AskWendy.wordpress.com</a>.</p>
<p><strong>1. Can you tell us about your book?</strong></p>
<p>The book was a great fit for me because I&#8217;d been teaching &#8220;Breaking Into Freelance Writing&#8221; for about eight years. In the workshop, I covered a lot of what is in this book: writing query letters to get articles in magazines, to land an agent, or to get a book deal with a publisher. Since I&#8217;m a full-time freelance magazine writer and editor with two previous books, this was incredibly fun to write because it didn&#8217;t require tons of research. I was lucky enough to receive lots of great sample query letters from writers and authors that I use as &#8220;good&#8221; examples in the book. I wrote all the &#8220;bad&#8221; examples myself because I didn&#8217;t dare ask for contributions that I knew I&#8217;d be ripping apart! In addition to the ins and outs of what makes a good query, the book covers things like why (or why not) to get an agent, where to find one and how to choose one; writing a synopsis or proposal; selling different rights to your work; other forms of correspondence; and what editors and agents look for in new writers. It was really important to me that the book not be a dry, boring reference book, but rather an entertaining read (while still being chock full of information). I was thrilled that Writer&#8217;s Digest let me keep all the humor.</p>
<p><a href="http://georgiamcbridebooks.wordpress.com/files/2009/11/querybook20copy1.jpg"><img class="alignright size-full wp-image-858" title="QueryBook%20copy[1]" src="http://georgiamcbridebooks.wordpress.com/files/2009/11/querybook20copy1.jpg" alt="" width="240" height="360" /></a><strong>2. Why are query letters so important?</strong></p>
<p>Breaking into the publishing world is hard enough right now. Unless you have a serious &#8220;in&#8221; of some kind, you really need a great query letter to impress an agent or acquisitions editor. Essentially, your query letter is your first impression. If they like your idea (and voice and writing style and background), they&#8217;ll either request a proposal, sample chapters, or the entire manuscript. If they don&#8217;t like your query letter, you&#8217;ve got to pitch it to another agency/publisher. Unlike a manuscript, which can be edited or reworked if an editor thinks it has promise, you only get one shot with your query. Make it count! I see a lot of authors who spend months (or years) finishing their book, only to rush through the process of crafting a good, solid query letter. What a waste! If agents/editors turn you down based on a bad query letter, you&#8217;ve blown your chance of getting them to read your manuscript. It could be the next bestseller, but they&#8217;ll never see it. My advice is to put as much effort into your query as you did your book. If it&#8217;s not fabulous, don&#8217;t send it until it is.</p>
<p><strong>3. There&#8217;s an entire chapter in the book about agents. Do you think all new writers should get agents?</strong></p>
<p>Probably 99% of new writers should get an agent. There are lots of reasons, but my top three are: 1) Many of the larger publishing houses won&#8217;t even look at unagented submissions now; 2) Agents can negotiate better rights and more money on your behalf; 3) Agents know the industry trends, changes and staff better than you ever could.</p>
<p><strong>4. You&#8217;ve been a mentor, coach or editor for many writers. What do you think is the most common reason that good writers don&#8217;t get published?</strong></p>
<p>Poor marketing skills. I see so many writers that are either too afraid, too uniformed, or frankly, too lazy, to market their work. They think their job is done when the write &#8220;the end&#8221; but writing is only half of the process. I&#8217;ve always told people who took my class that there are tons of great writers in the world who will never get published. I&#8217;d rather be a good writer who eats lobster than a great writer who eats hot dogs. I make a living as a writer because I spend as much time marketing as I do writing.</p>
<p><strong>5. What are some of the biggest misconceptions that writers have about getting a book deal?</strong></p>
<p>That they&#8217;ll be rich overnight, that they don&#8217;t need to promote their book once it&#8217;s published, that publishing houses will send them on world book tours, that people will recognize them at the airport. Still, you can make great money as an author if you&#8217;re prepared to put in the effort. If it wasn&#8217;t possible, there wouldn&#8217;t be so many full-time writers.</p>
<p><strong>6. What must-read books do you recommend to new writers?</strong></p>
<p>Christina Katz (author of &#8220;Writer Mama&#8221;) has a new book out called &#8220;Get Known Before the Book Deal&#8221; &#8211; which is fabulous. Also, Stephen King&#8217;s &#8220;On Writing&#8221; and David Morrell&#8217;s &#8220;Lessons from a Lifetime of Writing.&#8221; Anything by Anne Lamott or my Dad, Steve Burt.</p>
<p><a href="http://georgiamcbridebooks.wordpress.com/files/2009/11/wendyburt20copy2021.jpg"><img class="alignleft size-full wp-image-859" title="WendyBurt%20copy%202[1]" src="http://georgiamcbridebooks.wordpress.com/files/2009/11/wendyburt20copy2021.jpg" alt="" width="230" height="403" /></a><strong>7. What&#8217;s the biggest lesson you&#8217;ve learned as a full-time writer?</strong></p>
<p>Seize every opportunity &#8211; especially when you first start writing. I remember telling someone about a really high-paying writing gig I got and he said, &#8220;Wow. You have the best luck!&#8221; I thought, &#8220;Luck has nothing to do with it! I&#8217;ve worked hard to get where I am.&#8221; Later that week I read this great quote: &#8220;Luck is when preparation meets opportunity.&#8221; It&#8217;s absolutely true. And writing queries is only about luck in this sense. If you&#8217;re prepared with a good query and/or manuscript, when the opportunity comes along you&#8217;ll be successful.</p>
<p><strong>8. What did you enjoy most about writing this book?</strong></p>
<p>Writing the &#8220;bad&#8221; query letters. I&#8217;ve read – and written! – so many horrible ones over the years that it was a little too easy to craft them. But misery loves company and we ALL love to read really bad query letters, right?</p>
<p><strong>9. What do you want readers to learn from your book?</strong></p>
<p>I want them to understand that while writing a good query letter is important, it doesn&#8217;t have to be overwhelming. You can break it down into parts, learn from any first-round rejections, and read other good queries to help understand what works. I also want them to remember that writing is fun. Sometimes new writers get so caught up in the procedures that they lose their original voice in a query. Don&#8217;t bury your style under formalities and to-the-letter formatting.</p>
<p><strong>About Wendy Burt-Thomas</strong></p>
<p>Wendy Burt-Thomas is a full-time freelance writer, editor and PR consultant. Her credentials include more than 1,000 published articles, reviews, short stories, poems and greeting cards. She’s also written three books: “Oh, Solo Mia! The Hip Chick’s Guide to Fun for One” (2001, McGraw-Hill); “Work It, Girl! 101 Tips for the Hip Working Chick” (2003, McGraw-Hill) and “The Writer’s Digest Guide to Query Letters” (2009, Writer’s Digest Books). Her fourth book, an update of “The Everything Creative Writing Book” (Adams Media) hits stores in April 2010.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Vampire Madness]]></title>
<link>http://drizl.wordpress.com/2009/11/17/vampire-madness/</link>
<pubDate>Tue, 17 Nov 2009 14:26:52 +0000</pubDate>
<dc:creator>drizl</dc:creator>
<guid>http://drizl.wordpress.com/2009/11/17/vampire-madness/</guid>
<description><![CDATA[I tried to watch the live feed of the New Moon Premiere in LA last night but the feed kept dropping ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I tried to watch the live feed of the New Moon Premiere in LA last night but the feed kept dropping off and the hosts were absolutely f*cking horrible. The show was hosted by Anya Marina who is a singer and has a song on the soundtrack. I don&#8217;t know who the guy was and I don&#8217;t really care.  He should have taken her mic away and stomped on it. Then I would go find out his name. During the interviews she kept asking everyone if they liked her song. OMG she was awful.</p>
<p>Enough ranting about a silly movie premiere.  I will say that Rob rocked the red carpet. hehehe. Okay back to writing. Well, we are headed in to the second half of NaNo and let me tell you I&#8217;m ready to hit that 50,000 word count so I can breathe. I have about 12,000 more words to come up with before I hit that magical number.  The sad thing is the story will not be complete but I&#8217;m really diggin&#8217; my vamps so I&#8217;m going to continue until the story is finished. Probably have to jack it to 90,000 words or close to that number. Then the editing process will begin, but I really think I have a viable story. After I hit that fifty thousand number though I have to get my Time Jumper story ready to go out again. It will be back to the query process with the rewritten and amped up story. You will find me polishing my armour in preparation for the replies from agents and editors. One can always hope for a yes.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[title]]></title>
<link>http://scriptforall.wordpress.com/2009/11/17/title-28/</link>
<pubDate>Tue, 17 Nov 2009 10:20:45 +0000</pubDate>
<dc:creator>kostland</dc:creator>
<guid>http://scriptforall.wordpress.com/2009/11/17/title-28/</guid>
<description><![CDATA[HDS muscle its tte of rseau indirect id=&#8221;; talkbackform&#8221;; &gt;; Your comment You N `]]></description>
<content:encoded><![CDATA[HDS muscle its tte of rseau indirect id=&#8221;; talkbackform&#8221;; &gt;; Your comment You N `]]></content:encoded>
</item>

</channel>
</rss>
