Skip to content

Commit

Permalink
Merge branch 'acceptance'
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/components/parking/ParkingViewServices.tsx
  • Loading branch information
bartwr committed Apr 4, 2024
2 parents 4ff9559 + 2e31172 commit 8a6240c
Show file tree
Hide file tree
Showing 15 changed files with 840 additions and 79 deletions.
28 changes: 28 additions & 0 deletions mysql-db/handy-queries.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
select UserID FROM security_users where UserName="[email protected]" into @marc;
select ID From fietsenstallingen where Title like "%Marktstraat%" AND Plaats="Apeldoorn" INTO @stalling;
select @marc, @stalling;
INSERT INTO security_users_sites(UserID, SiteID, isContact) VALUES(@marc, @stalling, 0);

select fs.title
from security_users_sites sus
JOIN fietsenstallingen fs ON (fs.ID=sus.SiteID)
where sus.UserID=@marc;

Select * from fietsenstallingen_services where FietsenstallingID="0066B68F-6F95-4C42-BACF7B44C50FA061";
Select * from fietsenstallingen where ID="0066B68F-6F95-4C42-BACF7B44C50FA061";

select ID, Title, Beheerder, BeheerderContact, Capacity from fietsenstallingen WHERE IsStationsstalling;
select * from fietsenstallingen WHERE ID="0066B68F-6F95-4C42-BACF7B44C50FA061";

select * from security_users_sites where UserID="D4351342-685D-D17A-B3617EEBBF39451C";
select * from security_users_sites where UserID = @marc;

select * from fietsenstalling_sectie where fietsenstallingsId=@SiteID;

select fs.ID, fs.Title, fs.Plaats, fs.Capacity, count(fss.sectieId), sum(fss.capaciteit)
from fietsenstalling_sectie fss
left join fietsenstallingen fs ON fs.id=fss.fietsenstallingsId
WHERE fs.ID="0066B68F-6F95-4C42-BACF7B44C50FA061"
group by fs.ID
having count(fss.sectieId)>1
order by fs.Plaats, fs.Title
Loading

0 comments on commit 8a6240c

Please sign in to comment.