| Detta villkor är uppfyllt... |
...om denna SQL... |
...returnerar |
... och eventuell kommentar. |
|
Hustrun ska ha endast en notering med slutdatum 18730901 |
select civilsdat
from k136.CIVILSTAND
where ddbid = 10426987
|
18730901 |
|
|
Maken ska ha endast en notering med slutdatum 18730901 |
select civilsdat
from k136.CIVILSTAND
where ddbid = 14505238
|
18730901 |
|
|
Hustrun ska ha endast en notering med civilstånd gift (3) |
select civil
from k136.CIVILSTAND
where ddbid = 10426987
|
3 |
|
|
Maken ska ha endast en notering med samma civilstånd som hustrun, dvs. civilstånd gift (3) |
select civil
from k136.CIVILSTAND
where ddbid = 14505238
|
3 |
|
| Detta villkor är uppfyllt... |
...om denna SQL... |
...returnerar |
... och eventuell kommentar. |
|
Maken (14390223) ska ha två noteringar |
select count(*)
from k136.CIVILSTAND
where ddbid = 14390223
|
2 |
|
|
Makan (15453256) ska ha en notering |
select count(*)
from k136.CIVILSTAND
where ddbid = 15453256
|
1 |
|
Makens (14390223) första notering ska ha
- civilstånd OGIFT (CIVIL = 1),
- starttyp född (CIVILBTYP = 1),
- startdatum 18530311 (CIVILBDAT = 18530311),
- sluttyp pseudo, utflyttning (CIVILSTYP = 6),
- slutdatum 18530311 (CIVILSDAT = 18750817),
|
select count(*)
from k136.CIVILSTAND
where ddbid = 14390223 and CIVILNR = 1
and (CIVIL = 1 and
CIVILBTYP = 1 and
CIVILBDAT = 18530311 and
CIVILSTYP = 6 and
CIVILSDAT = 18750817)
|
1 |
|
Makens (14390223) andra notering ska ha
- civilstånd GIFT (CIVIL = 3),
- starttyp VIGSEL (CIVILBTYP = 3),
- startdatum 18751102 (CIVILBDAT = 18751102),
- sluttyp pseudo, utflyttning (CIVILSTYP = 6),
- slutdatum 18950000 (CIVILSDAT = 18950000),
|
select count(*)
from k136.CIVILSTAND
where ddbid = 14390223 and CIVILNR = 2
and (CIVIL = 3 and
CIVILBTYP = 3 and
CIVILBDAT = 18751102 and
CIVILSTYP = 6 and
CIVILSDAT = 18950000)
|
1 |
|
Makans (15453256) första notering ska ha
- civilstånd GIFT (CIVIL = 3),
- starttyp VIGSEL (CIVILBTYP = 3),
- startdatum 18751102 (CIVILBDAT = 18751102),
- sluttyp pseudo, utflyttning (CIVILSTYP = 6),
- slutdatum 18950000 (CIVILSDAT = 18950000),
|
select count(*)
from k136.CIVILSTAND
where ddbid = 15453256 and CIVILNR = 1
and (CIVIL = 3 and
CIVILBTYP = 3 and
CIVILBDAT = 18751102 and
CIVILSTYP = 6 and
CIVILSDAT = 18950000)
|
1 |
|
| Detta villkor är uppfyllt... |
...om denna SQL... |
...returnerar |
... och eventuell kommentar. |
|
Makan (15431911) ska ha fyra noteringar |
select count(*)
from k136.CIVILSTAND
where ddbid = 15431911
|
4 |
|
|
Maken (12988689) ska ha tre noteringar |
select count(*)
from k136.CIVILSTAND
where ddbid = 12988689
|
3 |
|
Makans (15431911) första notering ska ha
- civilstånd OGIFT (CIVIL = 1),
- starttyp FÖDSEL (CIVILBTYP = 1),
- startdatum 17971122 (CIVILBDAT = 17971122),
- sluttyp LYSNING (CIVILSTYP = 2),
- slutdatum 18270923 (CIVILSDAT = 18270923),
|
select count(*)
from k136.CIVILSTAND
where ddbid = 15431911 and CIVILNR = 1
and (CIVIL = 1 and
CIVILBTYP = 1 and
CIVILBDAT = 17971122 and
CIVILSTYP = 2 and
CIVILSDAT = 18270923)
|
1 |
|
Makans (15431911) andra notering ska ha
- civilstånd Förlovad / Fästefolk (CIVIL = 2),
- starttyp LYSNING (CIVILBTYP = 2),
- startdatum 18270923 (CIVILBDAT = 18270923),
- sluttyp VIGSEL (CIVILSTYP = 3),
- slutdatum 18271021 (CIVILSDAT = 18271021),
|
select count(*)
from k136.CIVILSTAND
where ddbid = 15431911 and CIVILNR = 2
and (CIVIL = 2 and
CIVILBTYP = 2 and
CIVILBDAT = 18270923 and
CIVILSTYP = 3 and
CIVILSDAT = 18271021)
|
1 |
|
Makans (15431911) tredje notering ska ha
- civilstånd GIFT (CIVIL = 3),
- starttyp VIGSEL (CIVILBTYP = 3),
- startdatum 18271021 (CIVILBDAT = 18271021),
- sluttyp PARTNERS DÖD (CIVILSTYP = 5),
- slutdatum 18690000 (CIVILSDAT = 18690000),
|
select count(*)
from k136.CIVILSTAND
where ddbid = 15431911 and CIVILNR = 3
and (CIVIL = 3 and
CIVILBTYP = 3 and
CIVILBDAT = 18271021 and
CIVILSTYP = 5 and
CIVILSDAT = 18690000)
|
1 |
|
Makans (15431911) fjärde notering ska ha
- civilstånd ÄNKA (CIVIL = 5),
- starttyp PARTNERS DÖD (CIVILBTYP = 5),
- startdatum 18690000 (CIVILBDAT = 18690000),
- sluttyp EGEN DÖD (CIVILSTYP = 1),
- slutdatum 18841214 (CIVILSDAT = 18841214),
|
select count(*)
from k136.CIVILSTAND
where ddbid = 15431911 and CIVILNR = 4
and (CIVIL = 5 and
CIVILBTYP = 5 and
CIVILBDAT = 18690000 and
CIVILSTYP = 1 and
CIVILSDAT = 18841214)
|
1 |
|
Makens (12988689) första notering ska ha
- civilstånd OKÄNT (CIVIL = 0),
- starttyp pseudo inflyttning (CIVILBTYP = 6),
- startdatum 18200000 (CIVILBDAT = 18200000),
- sluttyp LYSNING (CIVILSTYP = 2),
- slutdatum 18270923 (CIVILSDAT = 18270923),
|
select count(*)
from k136.CIVILSTAND
where ddbid = 12988689 and CIVILNR = 1
and (CIVIL = 0 and
CIVILBTYP = 6 and
CIVILBDAT = 18070000 and
CIVILSTYP = 2 and
CIVILSDAT = 18270923)
|
1 |
|
Makens (12988689) andra notering ska ha
- civilstånd Förlovad / Fästefolk (CIVIL = 2),
- starttyp LYSNING (CIVILBTYP = 2),
- startdatum 18270923 (CIVILBDAT = 18270923),
- sluttyp VIGSEL (CIVILSTYP = 3),
- slutdatum 18271021 (CIVILSDAT = 18271021),
|
select count(*)
from k136.CIVILSTAND
where ddbid = 12988689 and CIVILNR = 2
and (CIVIL = 2 and
CIVILBTYP = 2 and
CIVILBDAT = 18270923 and
CIVILSTYP = 3 and
CIVILSDAT = 18271021)
|
1 |
|
Makens (12988689) tredje notering ska ha
- civilstånd GIFT (CIVIL = 3),
- starttyp VIGSEL (CIVILBTYP = 3),
- startdatum 18271021 (CIVILBDAT = 18271021),
- sluttyp EGEN DÖD (CIVILSTYP = 1),
- slutdatum 18690000 (CIVILSDAT = 18690000),
|
select count(*)
from k136.CIVILSTAND
where ddbid = 12988689 and CIVILNR = 3
and (CIVIL = 3 and
CIVILBTYP = 3 and
CIVILBDAT = 18271021 and
CIVILSTYP = 1 and
CIVILSDAT = 18690000)
|
1 |
|
| Detta villkor är uppfyllt... |
...om denna SQL... |
...returnerar |
... och eventuell kommentar. |
|
Makan (11957371) ska ha 3 noteringar, ogift, lyst, gift. |
select count(*)
from k136.CIVILSTAND
where ddbid = 11957371
|
3 |
|
Makans (11957371) första notering ska ha
- civilstånd OGIFT (CIVIL = 1),
- starttyp FÖDSEL (CIVILBTYP = 1),
- startdatum 18360507 (CIVILBDAT = 18360507),
- sluttyp LYSNING (CIVILSTYP = 2),
- slutdatum 18610519 (CIVILSDAT = 18610519),
|
select count(*)
from k136.CIVILSTAND
where ddbid = 11957371 and CIVILNR = 1
and (CIVIL = 1 and
CIVILBTYP = 1 and
CIVILBDAT = 18360507 and
CIVILSTYP = 2 and
CIVILSDAT = 18610519)
|
1 |
|
Makans (11957371) andra notering ska ha
- civilstånd Förlovad / Fästefolk (CIVIL = 2),
- starttyp LYSNING (CIVILBTYP = 2),
- startdatum 18610519 (CIVILBDAT = 18610519),
- sluttyp VIGSEL (CIVILSTYP = 3),
- slutdatum 18610616 (CIVILSDAT = 18610616),
|
select count(*)
from k136.CIVILSTAND
where ddbid = 11957371 and CIVILNR = 2
and (CIVIL = 2 and
CIVILBTYP = 2 and
CIVILBDAT = 18610519 and
CIVILSTYP = 3 and
CIVILSDAT = 18610616)
|
1 |
|
Makans (11957371) tredje notering ska ha
- civilstånd GIFT (CIVIL = 3),
- starttyp VIGSEL (CIVILBTYP = 3),
- startdatum 18610616 (CIVILBDAT = 18610616),
- sluttyp PSEUDOHÄNDELSE, utflyttning (CIVILSTYP = 6),
- slutdatum 18920702 (CIVILSDAT = 18920702),
|
select count(*)
from k136.CIVILSTAND
where ddbid = 11957371 and CIVILNR = 3
and (CIVIL = 3 and
CIVILBTYP = 3 and
CIVILBDAT = 18610616 and
CIVILSTYP = 6 and
CIVILSDAT = 18920702)
|
1 |
|
En person (17721814):
| Detta villkor är uppfyllt... |
...om denna SQL... |
...returnerar |
... och eventuell kommentar. |
|
Maken (17721814) ska ha 3 noteringar, okänt, lyst, gift. |
select count(*)
from k136.CIVILSTAND
where ddbid = 17721814
|
3 |
|
Makens (17721814) första notering ska ha
- civilstånd OKÄND (CIVIL = 0),
- starttyp PSEUDOHÄNDELSE, inflyttning (CIVILBTYP = 6),
- startdatum 18430000 (CIVILBDAT = 18430000),
- sluttyp LYSNING (CIVILSTYP = 2),
- slutdatum 18610519 (CIVILSDAT = 18610519),
|
select count(*)
from k136.CIVILSTAND
where ddbid = 17721814 and CIVILNR = 1
and (CIVIL = 0 and
CIVILBTYP = 6 and
CIVILBDAT = 18430000 and
CIVILSTYP = 2 and
CIVILSDAT = 18610519)
|
1 |
|
Makens (17721814) andra notering ska ha
- civilstånd Förlovad / Fästefolk (CIVIL = 2),
- starttyp LYSNING (CIVILBTYP = 2),
- startdatum 18610519 (CIVILBDAT = 18610519),
- sluttyp VIGSEL (CIVILSTYP = 3),
- slutdatum 18610616 (CIVILSDAT = 18610616),
|
select count(*)
from k136.CIVILSTAND
where ddbid = 17721814 and CIVILNR = 2
and (CIVIL = 2 and
CIVILBTYP = 2 and
CIVILBDAT = 18610519 and
CIVILSTYP = 3 and
CIVILSDAT = 18610616)
|
1 |
|
Makens (17721814) tredje notering ska ha
- civilstånd GIFT (CIVIL = 3),
- starttyp VIGSEL (CIVILBTYP = 3),
- startdatum 18610616 (CIVILBDAT = 18610616),
- sluttyp PSEUDOHÄNDELSE, utflyttning (CIVILSTYP = 6),
- slutdatum 18920702 (CIVILSDAT = 18920702),
|
select count(*)
from k136.CIVILSTAND
where ddbid = 17721814 and CIVILNR = 3
and (CIVIL = 3 and
CIVILBTYP = 3 and
CIVILBDAT = 18610616 and
CIVILSTYP = 6 and
CIVILSDAT = 18920702)
|
1 |
|
En person (10966054):
| Detta villkor är uppfyllt... |
...om denna SQL... |
...returnerar |
... och eventuell kommentar. |
|
Personen (10966054) ska ha 2 noteringar, okänt, okänt. |
select count(*)
from k136.CIVILSTAND
where ddbid = 10966054
|
2 |
|
Personens (10966054) första notering ska ha
- civilstånd OKÄND (CIVIL = 0),
- starttyp PSEUDOHÄNDELSE, (CIVILBTYP = 6),
- startdatum 18230000 (CIVILBDAT = 18230000),
- sluttyp PSEUDOHÄNDELSE (CIVILSTYP = 6),
- slutdatum 18271024 (CIVILSDAT = 18271024),
|
select count(*)
from k136.CIVILSTAND
where ddbid = 10966054 and CIVILNR = 1
and (CIVIL = 0 and
CIVILBTYP = 6 and
CIVILBDAT = 18230000 and
CIVILSTYP = 6 and
CIVILSDAT = 18271024)
|
1 |
|
Personens (10966054) andra notering ska ha
- civilstånd OKÄND (CIVIL = 0),
- starttyp PSEUDOHÄNDELSE, (CIVILBTYP = 6),
- startdatum 18281209 (CIVILBDAT = 18281209),
- sluttyp PSEUDOHÄNDELSE (CIVILSTYP = 6),
- slutdatum 18341022 (CIVILSDAT = 18341022),
|
select count(*)
from k136.CIVILSTAND
where ddbid = 10966054 and CIVILNR = 2
and (CIVIL = 0 and
CIVILBTYP = 6 and
CIVILBDAT = 18281209 and
CIVILSTYP = 6 and
CIVILSDAT = 18341022)
|
1 |
|
En person (2323038):
| Detta villkor är uppfyllt... |
...om denna SQL... |
...returnerar |
... och eventuell kommentar. |
|
Personen (2323038) och partnern (3002889) har inga uppgifter om vigsel i LV och HLCIV under år 1871. |
select count(*) from sv.individ a
join sv.hlciv b on a.postnr=b.postnr
where a.ddbid in (2323038,3002889)
and b.civhldat/10000=1871 and b.civhltyp=1
union
select count(*) from sv.individ a
join sv.lv b on a.postnr=b.postnr
where a.ddbid in (2323038,3002889)
|
0 |
|
Personens (2323038) första notering ska ha
- civilstånd GIFT (CIVIL = 3),
- starttyp PSEUDOHÄNDELSE, (CIVILBTYP = 6),
- startdatum 18710503 (CIVILBDAT = 18710503),
- sluttyp EGEN DÖD (CIVILSTYP = 1),
- slutdatum 18720311 (CIVILSDAT = 18720311),
|
select count(*)
from k136.CIVILSTAND
where ddbid = 2323038 and CIVILNR = 1
and (CIVIL = 3 and
CIVILBTYP = 6 and
CIVILBDAT = 18710503 and
CIVILSTYP = 1 and
CIVILSDAT = 18720311)
|
1 |
|
Partnerns (3002889) andra notering ska ha
- civilstånd GIFT (CIVIL = 3),
- starttyp PSEUDOHÄNDELSE, (CIVILBTYP = 6),
- startdatum 18710503 (CIVILBDAT = 18710503),
- sluttyp PARTNERS DÖD (CIVILSTYP = 5),
- slutdatum 18720311 (CIVILSDAT = 18720311),
|
select count(*)
from k136.CIVILSTAND
where ddbid = 3002889 and CIVILNR = 2
and (CIVIL = 3 and
CIVILBTYP = 6 and
CIVILBDAT = 18710503 and
CIVILSTYP = 5 and
CIVILSDAT = 18720311)
|
1 |
|