Autor Beitrag
Milhouse2500
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 33

Win 2000, Win XP
D5 Prof, D7 Enterprise
BeitragVerfasst: Sa 26.06.04 16:43 
Hi

ich habe da ein kleines problem mit einem JOIN.

Bei folgendem Join:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
'select table_bill.bill_Id as ID, '+
'table_bill.bill_number as Nummer, '+
'table_customer.customer_lastname as Kunde, '+
'table_bill.bill_date as Datum '+
'from table_bill , table_customer '+
'where table_bill.customer_fk = table_customer.customer_ID '+
'order by table_bill.bill_number'


Bekomme ich diese Fehlermeldung:

Für mindestens einen erforderlichen Parameter wurde kein Wert angegeben.

wenn ich das stück mit der Where rausschmeise gehts, bekomme aber dann nicht das was ich haben wollte.

Ich hoffe ihr könnt mir helfen

Sol long
Milhouse

Moderiert von user profile iconMotzi: Code-Tags hinzugefügt.
Udontknow
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2596

Win7
D2006 WIN32, .NET (C#)
BeitragVerfasst: So 27.06.04 13:14 
Probiere es mal so:

ausblenden Quelltext
1:
2:
3:
select B.Bill_ID ID, B.Bill_Number Nummer, B.Bill_Date Datum,C.Customer_Lastname Kunde
from table_bill B left join table_customer C on (B.Customer_FK=C.Customer_ID)
order by B.Bill_Number


Cu,
Udontknow