Post
#1
|
|
|
Grupa: Zarejestrowani Postów: 10 Pomógł: 0 Dołączył: 14.07.2010 Ostrzeżenie: (0%)
|
Witam.
Nie radze sobie z takim zapytaniem. Tabela1. ID CratedBy CratedWhen .... CompleatedBy CompleatedWhen .... Tabela2. ID_user Imie Nazwisko .... Potrzebuje wybrac w jednym select imie i nazwisko kto utworzyl i kto zakonczyl dany rekord i czesto sa to dwie rozne osoby. Przychodzi mi do glowy to: sql = select Tabela2.Imie,Tabela2.Nazwisko,Tabela1.CratedBy.Tabela1.CompleatedWhen from Tabela1,Tabela2 where Tabela1.CratedBy=Tabela2.ID_user and Tabela1.CompleatedBy=Tabela2.ID_user; ale zwraca mi null Dzieki za pomoc. |
|
|
|
qbsterr [SQL] pobieranie danych 2.03.2013, 18:02:53
nospor select ... from tabela 1
left join tabela2 as u1
l... 2.03.2013, 18:25:00 ![]() ![]() |
|
Aktualny czas: 24.12.2025 - 14:49 |