Click here to Skip to main content
15,906,625 members
Home / Discussions / Database
   

Database

 
QuestionSplit it Pin
The_Server31-May-07 0:10
The_Server31-May-07 0:10 
AnswerRe: Split it Pin
Tirthadip31-May-07 1:28
Tirthadip31-May-07 1:28 
AnswerRe: Split it Pin
Kirtan Gor31-May-07 1:40
Kirtan Gor31-May-07 1:40 
QuestionRe: Split it [modified] Pin
The_Server31-May-07 2:25
The_Server31-May-07 2:25 
AnswerRe: Split it Pin
Harini N K4-Jun-07 0:56
Harini N K4-Jun-07 0:56 
AnswerRe: Split it Pin
The_Server6-Jun-07 20:07
The_Server6-Jun-07 20:07 
QuestionDataSet Fill Problem Pin
Kirtan Gor30-May-07 22:52
Kirtan Gor30-May-07 22:52 
QuestionSQL statement returning duplicates with DISTINCT [modified] Pin
ScottM130-May-07 22:01
ScottM130-May-07 22:01 
Does anybody know why this SQL statement returns duplicates even though I have included the DISTINCT keyword. There aren't duplicates in the database.

SELECT DISTINCT BLT_BILLM_TAX.BILLM_TAX_UNO, BLT_BILLM_TAX.BILL_TRAN_UNO, HBM_MATTER.MATTER_CODE, BLT_BILLM_TAX.JURISDIC_CODE,BLT_BILLM_TAX.TAX_CODE, BLT_BILLM_TAX.TAXABL_FEES_AMT, BLT_BILLM_TAX.TAXABL_HARD_AMT, BLT_BILLM_TAX.TAXABL_SOFT_AMT, 
BLT_BILLM_TAX.TAX_ON_FEES_AMT, BLT_BILLM_TAX.TAX_ON_HARD_AMT, BLT_BILLM_TAX.TAX_ON_SOFT_AMT, BLT_BILLM_TAX.FEE_TAX_RATE,
BLT_BILLM_TAX.DISB_TAX_RATE, CDT_DISB.PERIOD, CDT_DISB.COST_CODE, BLT_BILL.BILL_NUM
FROM HBM_MATTER 
INNER JOIN CDT_DISB ON HBM_MATTER.MATTER_UNO = CDT_DISB.MATTER_UNO 
INNER JOIN BLT_BILLM_TAX ON CDT_DISB.BILL_TRAN_UNO = BLT_BILLM_TAX.BILL_TRAN_UNO 
INNER JOIN BLT_BILL ON CDT_DISB.BILL_TRAN_UNO = BLT_BILL.TRAN_UNO 
INNER JOIN APT_INVOICE ON CDT_DISB.SOURCE_TRAN_UNO = APT_INVOICE.TRAN_UNO
WHERE (APT_INVOICE.PERIOD BETWEEN '200601' AND '200601') 
AND (APT_INVOICE.TRAN_UNO = 627167)


Any help would be appreciated
Thanks


-- modified at 6:00 Thursday 31st May, 2007


-- modified at 6:01 Thursday 31st May, 2007

There are 10 types of people in the world, those who understand binary and those who dont.

AnswerRe: SQL statement returning duplicates with DISTINCT Pin
kubben31-May-07 3:11
kubben31-May-07 3:11 
GeneralRe: SQL statement returning duplicates with DISTINCT Pin
ScottM131-May-07 3:24
ScottM131-May-07 3:24 
Questionnormailzation? Pin
saravanan0530-May-07 20:48
saravanan0530-May-07 20:48 
AnswerRe: normailzation? Pin
ScottM130-May-07 21:44
ScottM130-May-07 21:44 
QuestionDate format in T-SQL Pin
Werries30-May-07 12:02
Werries30-May-07 12:02 
AnswerRe: Date format in T-SQL Pin
Werries30-May-07 12:19
Werries30-May-07 12:19 
AnswerRe: Date format in T-SQL Pin
Mike Dimmick30-May-07 23:05
Mike Dimmick30-May-07 23:05 
QuestionConnect to a database Pin
Aptiva Dave30-May-07 5:54
Aptiva Dave30-May-07 5:54 
AnswerRe: Connect to a database Pin
Nouman Bhatti31-May-07 2:55
Nouman Bhatti31-May-07 2:55 
GeneralRe: Connect to a database Pin
Aptiva Dave31-May-07 5:09
Aptiva Dave31-May-07 5:09 
GeneralRe: Connect to a database Pin
Paul Conrad1-Jun-07 7:22
professionalPaul Conrad1-Jun-07 7:22 
AnswerRe: Connect to a database Pin
ganti.r7-Jun-07 1:50
ganti.r7-Jun-07 1:50 
QuestionSetFieldValue() Pin
hero199529-May-07 22:43
hero199529-May-07 22:43 
QuestionINSERT - Date/Time INTO SQL ?? Pin
Fritzables29-May-07 21:44
Fritzables29-May-07 21:44 
AnswerRe: INSERT - Date/Time INTO SQL ?? Pin
WoutL29-May-07 22:21
WoutL29-May-07 22:21 
GeneralRe: INSERT - Date/Time INTO SQL ?? Pin
Fritzables29-May-07 22:42
Fritzables29-May-07 22:42 
GeneralRe: INSERT - Date/Time INTO SQL ?? Pin
WoutL29-May-07 23:56
WoutL29-May-07 23:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.