 




<?xml version="1.0" encoding="UTF-8"?>
<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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IT Answers &#187; MySQL query</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/mysql-query/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Fri, 24 May 2013 09:10:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>SQL selecting multiple rows from same column based on different column values</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-selecting-multiple-rows-from-same-column-based-on-different-column-values/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/sql-selecting-multiple-rows-from-same-column-based-on-different-column-values/#comments</comments>
		<pubDate>Sat, 15 Sep 2012 17:12:28 +0000</pubDate>
		<dc:creator>edsonk45</dc:creator>
				<category><![CDATA[MySQL query]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/sql-selecting-multiple-rows-from-same-column-based-on-different-column-values/</guid>
		<description><![CDATA[New Answer by TomLiotta]]></description>
				<content:encoded><![CDATA[New Answer by TomLiotta]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/sql-selecting-multiple-rows-from-same-column-based-on-different-column-values/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>GROUP BY mysql</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/group-by-mysql/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/group-by-mysql/#comments</comments>
		<pubDate>Thu, 07 Jun 2012 08:10:15 +0000</pubDate>
		<dc:creator>LewisT</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL Database]]></category>
		<category><![CDATA[MySQL query]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi I have started working with a mySQL databse. I need a query that will either make use of &#8220;DISTINCT&#8221; or &#8220;GROUP BY&#8221; but that selectes the record that has the highest &#8216;VersionNumber&#8217; Can anybody suggest how I would achieve this? Thanks in advance.]]></description>
				<content:encoded><![CDATA[<p>Hi<br/><br/> I have started working with a mySQL databse.<br/><br/> I need a query that will either make use of &#8220;DISTINCT&#8221; or &#8220;GROUP BY&#8221; but that selectes the record that has the highest &#8216;VersionNumber&#8217;<br/><br/> Can anybody suggest how I would achieve this?<br/><br/> Thanks in advance.<br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/group-by-mysql/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Querying against Views vs Tables</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/querying-against-views-vs-tables/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/querying-against-views-vs-tables/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 15:38:42 +0000</pubDate>
		<dc:creator>Artaxerxes2</dc:creator>
				<category><![CDATA[MySQL query]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I have a view that combine several tables, so that the view presents more information that each table taken individually. I want to write an &#8220;INSERT INTO &#8230; SELECT &#8230; FROM xxx&#8221; query. Should I use the View in that &#8220;FROM xxx&#8221; or should I expand what the view shows? What&#8217;s better in terms of [...]]]></description>
				<content:encoded><![CDATA[<p>I have a view that combine several tables, so that the view presents more information that each table taken individually. I want to write an &#8220;INSERT INTO &#8230; SELECT &#8230; FROM xxx&#8221; query. Should I use the View in that &#8220;FROM xxx&#8221; or should I expand what the view shows? What&#8217;s better in terms of optimization and/or business practice?<br />
(I run on MySQL if it makes any difference)</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/querying-against-views-vs-tables/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Starting a session in MySQL</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/answers-for-the-my-sql/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/answers-for-the-my-sql/#comments</comments>
		<pubDate>Mon, 13 Dec 2010 09:48:04 +0000</pubDate>
		<dc:creator>9867212949</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL functions]]></category>
		<category><![CDATA[MySQL query]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[how to start a session in my sql?]]></description>
				<content:encoded><![CDATA[<p>how to start a session in my sql?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/answers-for-the-my-sql/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>MSQL Auditing</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/msql-auditing/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/msql-auditing/#comments</comments>
		<pubDate>Mon, 27 Sep 2010 08:25:18 +0000</pubDate>
		<dc:creator>Dimon74</dc:creator>
				<category><![CDATA[Auditing]]></category>
		<category><![CDATA[dot.net]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL query]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL audit]]></category>
		<category><![CDATA[SQL Query]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hello. I&#8217;m dot.net developer, and i&#8217;m working a lot with MSQL. My current task is when some user executes select query on database, i should &#8221;catch&#8221; the query data. What do i mean is if select query is &#8220;select * from UsersTbl where UserID = 5&#8243;, i have to get  &#8217;5&#8242;. Does somebody have any idea where to start??? Thanks [...]]]></description>
				<content:encoded><![CDATA[<p>Hello.<br/><br/> I&#8217;m dot.net developer, and i&#8217;m working a lot with MSQL. My current task is when some user executes select query on database, i should &#8221;catch&#8221; the query data. What do i mean is if select query is &#8220;select * from UsersTbl where UserID = 5&#8243;, i have to get  &#8217;5&#8242;. Does somebody have any idea where to start??? <br/><br/> Thanks a lot. <br/><br/> Dmitry <br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/msql-auditing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>pagination using MySql</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/pagination-using-mysql/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/pagination-using-mysql/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 11:50:49 +0000</pubDate>
		<dc:creator>NetDeveloper</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL query]]></category>
		<category><![CDATA[Pagination]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[can anybody get any query for pagination using MySql.. any helps are welcome]]></description>
				<content:encoded><![CDATA[<p>can anybody get any query for pagination using MySql.. any helps are welcome</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/pagination-using-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Need help with documentation on a time tracker project</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/project-report/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/project-report/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 08:28:43 +0000</pubDate>
		<dc:creator>Novicebeginner</dc:creator>
				<category><![CDATA[C# .NET]]></category>
		<category><![CDATA[MySQL documentation]]></category>
		<category><![CDATA[MySQL functions]]></category>
		<category><![CDATA[MySQL query]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[i m workin on a project &#8211; time tracker. its my 1st one. m a newbie n have no idea about documentation. can someone plz brief me how it wil b done? thanx]]></description>
				<content:encoded><![CDATA[<p>i m workin on a project &#8211; time tracker. its my 1st one. m a newbie n have no idea about documentation. can someone plz brief me how it wil b done? thanx</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/project-report/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL brain teaser</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/mysql-brain-teaser/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/mysql-brain-teaser/#comments</comments>
		<pubDate>Tue, 18 May 2010 15:00:36 +0000</pubDate>
		<dc:creator>Michael Morisy</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL query]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[This has been driving me crazy. I’m trying to come up with an UPDATE query in MySQL that will remove the second blank space in a name and close the gap.   Example: O Brien, John E should become OBrien, John E   A simple REPLACE (name, ‘ ‘,’’) where SUBSTRING (name,2,1) like “ “ [...]]]></description>
				<content:encoded><![CDATA[<div>
This has been driving me crazy. I’m trying to come up with an UPDATE query in MySQL that will remove the second blank space in a name and close the gap.<br/><br/><br />
 <br/><br/><br />
Example: O Brien, John E should become OBrien, John E<br/><br/><br />
 <br/><br/><br />
A simple REPLACE (name, ‘ ‘,’’) where SUBSTRING (name,2,1) like “ “ won’t work since it would remove all the spaces. I tried nesting the substring into the replace command, with less than stellar results. My last resort would be to parse the name into two new fields and then concat them, but that seems like way too many steps.<br/><br/><br />
 <br/><br/><br />
Has anyone come across an easier way to fix this? Thanks<br/><br/>
</div>
<p><br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/mysql-brain-teaser/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SQL query</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-query-11/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/sql-query-11/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 15:58:33 +0000</pubDate>
		<dc:creator>Srividya</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL admin]]></category>
		<category><![CDATA[MySQL query]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[New Answer by Chris Leonard]]></description>
				<content:encoded><![CDATA[New Answer by Chris Leonard]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/sql-query-11/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SQL join two counts on same table</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-join-two-counts-on-same-table/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/sql-join-two-counts-on-same-table/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 18:17:57 +0000</pubDate>
		<dc:creator>Shantheman</dc:creator>
				<category><![CDATA[MySQL query]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I have two different SQL statements that each is a count on the same table, but a count of different columns. I&#8217;m trying to combine them into a single statement, but am having trouble doing so.  The two statements are:  SELECT photoIDWinner as photoID, count(primaryID) as countWin FROM `rankRaw` WHERE 1 group by `photoIDWinner`   and [...]]]></description>
				<content:encoded><![CDATA[<p>I have two different SQL statements that each is a count on the same table, but a count of different columns.  I&#8217;m trying to combine them into a single statement, but am having trouble doing so. </p>
<div></div>
<div>The two statements are: 
</div>
<div></div>
<div>
<pre>SELECT photoIDWinner as photoID, count(primaryID) as countWin FROM `rankRaw` WHERE 1 group by `photoIDWinner` </pre>
</div>
<div></div>
<div> and</div>
<div></div>
<div>
<pre> SELECT photoIDLoser as photoID, count(primaryID) as countLose FROM `rankRaw` WHERE 1 group by `photoIDLoser`</pre>
</div>
<div></div>
<div> I want the result to be three columnss: photoID, countWin and countLose where photoIDWinner (from 1st) = photoIDLoser (from 2nd).<br />
Anyone able to help? </div>
<div></div>
<div>Thanks!</div>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/sql-join-two-counts-on-same-table/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/30 queries in 0.027 seconds using memcached
Object Caching 895/1050 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-24 12:24:27 -->