Two SQL statement in one Query...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
azri_bech
Forum Newbie
Posts: 14
Joined: Fri Aug 07, 2009 11:15 pm

Two SQL statement in one Query...

Post by azri_bech »

Anyone can help to resolve my problem.

How to create two sql statement in one query.
i want to SELECT * FROM tablename1 and another one SELECT DISTINCT date_posted FROM tablename1

Thanks.
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: Two SQL statement in one Query...

Post by jackpf »

Union?
azri_bech
Forum Newbie
Posts: 14
Joined: Fri Aug 07, 2009 11:15 pm

Re: Two SQL statement in one Query...

Post by azri_bech »

yes
Post Reply