Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

SQL question....

 
   Web Hosting and Web Master Forums (Home) -> Webmaster RSS
Next:  [OT] Raffle sites and accepting money...  
Author Message
kkiely

External


Since: Aug 12, 2003
Posts: 105



(Msg. 1) Posted: Tue Aug 03, 2004 6:06 am
Post subject: SQL question....
Archived from groups: alt>www>webmaster (more info?)

If i have listings of home poker games pulled from a SQL database and the game
have 3 characteristics:

Listing creation date
State of game
Premium listing or free listing

Can I have it so that I pull the game up like this?

PREMIUM LISTINGS - Ohio only
Created 01/01/2004 - premium listing
Created 01/02/2004 - premium listing
Created 01/03/2004 - premium listing

FREE LISTINGS - Ohio only
Created 01/01/2004 - premium listing
Created 01/02/2004 - premium listing
Created 01/03/2004 - premium listing

So basically have it pull data by state only then do a sort for Premium or Free
listing and then a secondary sort by date

 >> Stay informed about: SQL question.... 
Back to top
Login to vote
gsexton1

External


Since: Aug 02, 2004
Posts: 13



(Msg. 2) Posted: Tue Aug 03, 2004 6:06 am
Post subject: Re: SQL question.... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

select *
From TableName
Where State='xx'
sort by ListingType desc,
  CreateDate
 
On Tue, 03 Aug 2004 03:06:18 +0000, Kkiely wrote:

 > If i have listings of home poker games pulled from a SQL database and the game
 > have 3 characteristics:
 >
 > Listing creation date
 > State of game
 > Premium listing or free listing
 >
 > Can I have it so that I pull the game up like this?
 >
 > PREMIUM LISTINGS - Ohio only
 > Created 01/01/2004 - premium listing
 > Created 01/02/2004 - premium listing
 > Created 01/03/2004 - premium listing
 >
 > FREE LISTINGS - Ohio only
 > Created 01/01/2004 - premium listing
 > Created 01/02/2004 - premium listing
 > Created 01/03/2004 - premium listing
 >
 > So basically have it pull data by state only then do a sort for Premium or Free
 > listing and then a secondary sort by date

--
George Sexton
MH Software, Inc. - Home of Connect Daily Web Calendar
<a style='text-decoration: underline;' href="http://www.mhsoftware.com" target="_blank">http://www.mhsoftware.com</a><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: SQL question.... 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Question about Web.com - Does anyone have any experience with www.web.com hosting? They're offering hosting for $7.95 (paid quarterly) including: * 1000 MB Disk Space * 4000 MB Traffic * 500 E-mail Accounts * osCommerce, PHP-Nuke, and PostNuke * PHP 4.3/SQL 3.2 * And a FREE..

CSS Question - (Mainly aimed at Grey, but feel free to suggest) I thought there was a way to supress the behaviour in some Browsers whereby heading tags (<h2> for example) force a blank line? Matt -- If your encyclopaedia doesn't list "widget glass",...

CSS question... - On one of my sites I used a template on it uses CSS. Thing is if the text size in IE is set to anything other than Medium the text is either too big to read or too small to read. How di I fix this?

Another CSS Question - OK, Experts, As you can see, I'm still learning CSS and HTML 4.01 strict <G>. Another question for you. What's the new version of &lt;href ... target="_new"&gt; (This opens an off-site link in a new windows). Thanks again...

.PHP question - I had a script installed PHP If I wanted to change the text in the file can I upload it with ftp or will I need to configure it in MyPHP. Will it messup my site? Im now to this. thanks
   Web Hosting and Web Master Forums (Home) -> Webmaster All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]