Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Databases
»
help with an SQL - statement
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Using WriteLn inside dll
by
Thaddy
[
Today
at 04:16:20 pm]
Is FPGUI still active?
by
CM630
[
Today
at 04:15:00 pm]
Hello everyone!
by
Curt Carpenter
[
Today
at 03:55:40 pm]
SpkToolbar custom update
by
dedisoft
[
Today
at 03:53:43 pm]
Matching video to form
by
Pe3s
[
Today
at 01:54:30 pm]
fpsockets error: 10047
by
rvk
[
Today
at 01:27:41 pm]
Avoid system units debugg...
by
janasoft
[
Today
at 12:13:42 pm]
Struggling with Orthello/...
by
Dzandaa
[
Today
at 11:48:43 am]
[SOLVED] progress dialog ...
by
Phoenix
[
Today
at 11:14:23 am]
Notetask 1.1.0 - Free cro...
by
AlexanderT
[
Today
at 10:05:28 am]
I cannot save an unit on ...
by
Zvoni
[
Today
at 09:06:05 am]
Mapping Images Like Odome...
by
circular
[
Today
at 08:58:33 am]
Introducing PasBuild 1.0....
by
Thaddy
[
Today
at 08:16:53 am]
Form adjusting to screen ...
by
RickSpink
[
Today
at 08:11:59 am]
Amigo programming languag...
by
paxscript
[
Today
at 04:06:34 am]
Feature better than a new...
by
TBMan
[
Today
at 03:56:13 am]
Any way to exclude terms ...
by
n7800
[
Today
at 12:59:05 am]
Just Curious: When has an...
by
n7800
[
Today
at 12:15:00 am]
Detect orphaned procedure...
by
Martin_fr
[December 09, 2025, 11:37:51 pm]
modern main menu
by
n7800
[December 09, 2025, 10:23:04 pm]
Lazarus Bugfix Release 4...
by
Martin_fr
[December 09, 2025, 08:35:41 pm]
Hints in TTrayIcon
by
avra
[December 09, 2025, 07:01:02 pm]
Problem with TSQLQuery
by
sch61
[December 09, 2025, 05:15:38 pm]
What are some good modern...
by
sanric
[December 09, 2025, 04:46:09 pm]
First PythonForLazarus De...
by
fozkan
[December 09, 2025, 04:20:56 pm]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: help with an SQL - statement (Read 2812 times)
Nicole
Hero Member
Posts: 1281
[solved] Re: help with an SQL - statement
«
Reply #15 on:
March 06, 2024, 07:00:44 pm »
Thank you all so very much, it works.
And I learnt a lot
Code: MySQL
[Select]
[+]
[-]
with
tbd
as
(
select
datum
from
TBKURSZEILEN
where
fk_kontrakt
in
(
2340
,
2369
)
group by
1
having
count
(
datum
)
=
2
)
select
id_kurszeile
,
fk_kontrakt
,
t.datum
from
tbkurszeilen t
where
exists
(
select
*
from
tbd
where
t.datum
=
datum
and
t.FK_KONTRAKT
in
(
2340
,
2369
)
)
Logged
gidesa
Full Member
Posts: 202
Re: help with an SQL - statement
«
Reply #16 on:
March 06, 2024, 07:31:03 pm »
@rvk yes, you are right
Logged
Print
Pages:
1
[
2
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Databases
»
help with an SQL - statement
TinyPortal
© 2005-2018