I made a querie with 2 table. both of 2 table have date fields. the querie also have this both of date fields with other fields. so all data show in a each line. like
name | address | date this 3 fields in table1
Roll | Class | date this 3 fields in table2
name | date | roll | date this 4 fields in querie1
now this data show in querie1 like
Taher | 17/11/2008 | 100 | 16/11/2008
but I want it show in two row with sort by date like:
Taher | 17/11/2008
100 | 16/11/2008
how can I do this
abu taher
34
Practically a Posting Shark
Recommended Answers
Jump to PostHi,
use :
Select * From MyTable Order By MyDate
Regards
Veena
Jump to Postyou can also based on multiple fields one after another
.......order by field1,field2,field3.
Jump to PostPlz Post your query here. will help u out.
Jump to PostMODIFY THE QUERY AS GIVEN BELOW
SELECT sNAME, sDATE, sTK FROM (SELECT Table1.name AS sNAME, Table1.date1 AS sDATE, Table1.tk AS sTK from Table1 UNION ALL SELECT Table2.add AS sNAME, Table2.date2 AS sDATE, Table2.tk2 AS sTK FROM Table2)
I have attached back ur file with the same change. …
Jump to PostYou can even add sort clause if u like to the same
TO SORT BY DATE
SELECT sNAME, sDATE, sTK FROM (SELECT Table1.name AS sNAME, Table1.date1 AS sDATE, Table1.tk AS sTK from Table1 UNION ALL SELECT Table2.add AS sNAME, Table2.date2 AS sDATE, Table2.tk2 AS sTK FROM …
All 18 Replies
abu taher
34
Practically a Posting Shark
QVeen72
104
Posting Shark
debasisdas
580
Posting Genius
Featured Poster
abu taher
34
Practically a Posting Shark
abu taher
34
Practically a Posting Shark
aktharshaik
16
Posting Whiz
abu taher
34
Practically a Posting Shark
abu taher
34
Practically a Posting Shark
aktharshaik
16
Posting Whiz
aktharshaik
16
Posting Whiz
abu taher
34
Practically a Posting Shark
aktharshaik
16
Posting Whiz
abu taher
34
Practically a Posting Shark
aktharshaik
16
Posting Whiz
jyonto
0
Newbie Poster
jyonto
0
Newbie Poster
aktharshaik
16
Posting Whiz
vb5prgrmr
143
Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.