powered by simpleCommunicator - 2.0.60     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / FoxPro, Visual FoxPro [игнор отключен] [закрыт для гостей] / Запрос с объединением
3 сообщений из 3, страница 1 из 1
Запрос с объединением
    #32401390
MichaelP
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Как сделать так, чтобы в выборку при объединении таблиц попадали и null значения?
К примеру... запрос:
Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
Select   dtpstreet.Street
	,Build
	,DTPVid
	,KolvoPeopl
	,Erecte1
	,Erecte2
	,WidthPassa
	,WidthTrotu
	,CoverStat
	,Light
	,Weather
	,Condit1
	,Condit2
	,Condit3
From dtp_kart.dbf
Join DtpStreet.dbf
On DtpStreet.dbf.code = dtp_kart.dbf.streetcode;

Если в таблице dtp_kart.dbf значение streetcode = null, то эта запись вообще в выборку не попадает. Реально ли?
...
Рейтинг: 0 / 0
Запрос с объединением
    #32401749
VadimS
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Не совсем понятен вопрос. Если хочешь вывести все значения из dtp_kart примени не JOIN, а LEFT JOIN.
...
Рейтинг: 0 / 0
Запрос с объединением
    #32401758
Ritter
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Пробовали встроенной справкой пользоваться? Там вроде понятно написано:

INNER JOIN specifies that the query result contain only rows from a table that match one or more rows in another table.

LEFT [OUTER] JOIN specifies that the query result contains all rows from the table to the left of the JOIN keyword and only matching rows from the table to the right of the JOIN keyword. The OUTER keyword is optional; you can include it to emphasize that an outer join is created.

RIGHT [OUTER] JOIN specifies that the query result contain all rows from the table to the right of the JOIN keyword and only matching rows from the table to the left of the JOIN keyword. The OUTER keyword is optional; it can be included to emphasize that an outer join is created.

FULL [OUTER] JOIN specifies that the query result contain all matching and nonmatching rows from both tables. The OUTER keyword is optional; you can include it to emphasize that an outer join is created.

For more information about joins, see Joins in the Remarks section.

ON JoinCondition specifies the conditions for which the tables are joined.
...
Рейтинг: 0 / 0
3 сообщений из 3, страница 1 из 1
Форумы / FoxPro, Visual FoxPro [игнор отключен] [закрыт для гостей] / Запрос с объединением
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]