# 障害票 1367
# UNIONでAND条件

Begin;
Initialize;
InitializeSession "TESTDB";
Command "create database TESTDB";

Command "create table TBL(f int, g ntext, h int, primary key(f))";
Command "create table TBL2(f int, g ntext, primary key(f))";

Command "insert TBL values (1, 'aaa', 1), (2, 'bbb', 3), (3, 'ccc', 5)";
Command "insert TBL2 values (1, 'aaa'), (2, 'bbb'), (3, 'ccc')";

Command "select * from TBL, TBL2
		where TBL.f = TBL2.f
		and TBL.h = 1
		and (TBL.f = 3 or TBL2.f = 1)
";

Command "drop database TESTDB";
TerminateSession;
Terminate;
End;