Combining multiple SQL SELECT statements into one
I need to combine the following three SELECT statements into a single SQL Statement:
1. SELECT TotalTime FROM Session WHERE device_uid = ${my_uid} ORDER BY StartTime DESC LIMIT 1;
2. SELECT HoursAtService FROM Service WHERE device_uid = ${my_uid} ORDER BY StartTime DESC LIMIT 1;
3. SELECT ServiceHours FROM Type WHERE type_uid = ${my_type_uid};
Preferably, I want to get my result as a single row with the following fields:
Result:
----------------------------------------------------------------
uid, TotalTime, HoursAtService, ServiceHours
I'm thinking that I probably need to do an inner join, but I'm not 100% sure how to approach it. Something like:
SELECT uid, TotalTime, HoursAtService, ServiceHours FROM Device AS t1 INNER JOIN (... -> continues
Doing a join between tables is easy enough, but how do you approach doing the join with multiple WHERE clauses for the various tables?
Could someone show me how I would structure the query?
EDIT - Table Schemas
Device:
---------------------
device_uid, type_uid, ....
Session:
---------------------
device_uid, session_uid, TotalTime, StartTime, EndTime, SessionTime
Service:
---------------------
device_uid, service_uid, StartTime, EndTime, HoursAtService
Type:
---------------------
type_uid, Name, ServiceHours
mysql join
add a comment |
I need to combine the following three SELECT statements into a single SQL Statement:
1. SELECT TotalTime FROM Session WHERE device_uid = ${my_uid} ORDER BY StartTime DESC LIMIT 1;
2. SELECT HoursAtService FROM Service WHERE device_uid = ${my_uid} ORDER BY StartTime DESC LIMIT 1;
3. SELECT ServiceHours FROM Type WHERE type_uid = ${my_type_uid};
Preferably, I want to get my result as a single row with the following fields:
Result:
----------------------------------------------------------------
uid, TotalTime, HoursAtService, ServiceHours
I'm thinking that I probably need to do an inner join, but I'm not 100% sure how to approach it. Something like:
SELECT uid, TotalTime, HoursAtService, ServiceHours FROM Device AS t1 INNER JOIN (... -> continues
Doing a join between tables is easy enough, but how do you approach doing the join with multiple WHERE clauses for the various tables?
Could someone show me how I would structure the query?
EDIT - Table Schemas
Device:
---------------------
device_uid, type_uid, ....
Session:
---------------------
device_uid, session_uid, TotalTime, StartTime, EndTime, SessionTime
Service:
---------------------
device_uid, service_uid, StartTime, EndTime, HoursAtService
Type:
---------------------
type_uid, Name, ServiceHours
mysql join
show your tables schema
– Artem Ilchenko
Jan 3 at 10:22
what is the relationship betweenService
,Session
&Type
tables?
– pkgajulapalli
Jan 3 at 10:22
add a comment |
I need to combine the following three SELECT statements into a single SQL Statement:
1. SELECT TotalTime FROM Session WHERE device_uid = ${my_uid} ORDER BY StartTime DESC LIMIT 1;
2. SELECT HoursAtService FROM Service WHERE device_uid = ${my_uid} ORDER BY StartTime DESC LIMIT 1;
3. SELECT ServiceHours FROM Type WHERE type_uid = ${my_type_uid};
Preferably, I want to get my result as a single row with the following fields:
Result:
----------------------------------------------------------------
uid, TotalTime, HoursAtService, ServiceHours
I'm thinking that I probably need to do an inner join, but I'm not 100% sure how to approach it. Something like:
SELECT uid, TotalTime, HoursAtService, ServiceHours FROM Device AS t1 INNER JOIN (... -> continues
Doing a join between tables is easy enough, but how do you approach doing the join with multiple WHERE clauses for the various tables?
Could someone show me how I would structure the query?
EDIT - Table Schemas
Device:
---------------------
device_uid, type_uid, ....
Session:
---------------------
device_uid, session_uid, TotalTime, StartTime, EndTime, SessionTime
Service:
---------------------
device_uid, service_uid, StartTime, EndTime, HoursAtService
Type:
---------------------
type_uid, Name, ServiceHours
mysql join
I need to combine the following three SELECT statements into a single SQL Statement:
1. SELECT TotalTime FROM Session WHERE device_uid = ${my_uid} ORDER BY StartTime DESC LIMIT 1;
2. SELECT HoursAtService FROM Service WHERE device_uid = ${my_uid} ORDER BY StartTime DESC LIMIT 1;
3. SELECT ServiceHours FROM Type WHERE type_uid = ${my_type_uid};
Preferably, I want to get my result as a single row with the following fields:
Result:
----------------------------------------------------------------
uid, TotalTime, HoursAtService, ServiceHours
I'm thinking that I probably need to do an inner join, but I'm not 100% sure how to approach it. Something like:
SELECT uid, TotalTime, HoursAtService, ServiceHours FROM Device AS t1 INNER JOIN (... -> continues
Doing a join between tables is easy enough, but how do you approach doing the join with multiple WHERE clauses for the various tables?
Could someone show me how I would structure the query?
EDIT - Table Schemas
Device:
---------------------
device_uid, type_uid, ....
Session:
---------------------
device_uid, session_uid, TotalTime, StartTime, EndTime, SessionTime
Service:
---------------------
device_uid, service_uid, StartTime, EndTime, HoursAtService
Type:
---------------------
type_uid, Name, ServiceHours
mysql join
mysql join
edited Jan 3 at 10:25
Cornel Verster
asked Jan 3 at 10:16
Cornel VersterCornel Verster
4261626
4261626
show your tables schema
– Artem Ilchenko
Jan 3 at 10:22
what is the relationship betweenService
,Session
&Type
tables?
– pkgajulapalli
Jan 3 at 10:22
add a comment |
show your tables schema
– Artem Ilchenko
Jan 3 at 10:22
what is the relationship betweenService
,Session
&Type
tables?
– pkgajulapalli
Jan 3 at 10:22
show your tables schema
– Artem Ilchenko
Jan 3 at 10:22
show your tables schema
– Artem Ilchenko
Jan 3 at 10:22
what is the relationship between
Service
, Session
& Type
tables?– pkgajulapalli
Jan 3 at 10:22
what is the relationship between
Service
, Session
& Type
tables?– pkgajulapalli
Jan 3 at 10:22
add a comment |
3 Answers
3
active
oldest
votes
You can merge above single queries in one query like below MYSQL Query:
SELECT Session.uid, Session.TotalTime, Service.HoursAtService, ServiceHours.ServiceHours
FROM Session
JOIN Service ON Service.udi = Session.uid
JOIN ServiceHours ON ServiceHours.type_uid = Session.uid
WHERE Session.uid = ${my_uid}
ORDER BY Session.StartTime DESC LIMIT 1;
Change the column names as you have in your related tables.
Hi there, I need to do a ORDER BY on both Session and Service tables though. Meaning, the StartTime in these tables will be different, but the ORDER BY must apply to both. Will this be covered?
– Cornel Verster
Jan 3 at 10:27
Yes, you can apply order by on multiple columns like Session.column_name DESC, Service.column_name ASC
– Manoj Patel
Jan 3 at 10:32
add a comment |
You can use the below query to achieve the things which you mentioned, I have also taken care of square brackets for the keywords because service and session are SQL keywords.
SELECT
[Device].Type_uid AS DeviceTypeId, [Device].Device_uid AS DeviceId, [Session].TotalTime, [Service].HoursAtService, [Type].ServiceHours
FROM
[Session] INNER JOIN [Device] ON [Session].Device_uid = [Device].Device_uid
[Service] INNER JOIN [Device] ON [Service].Device_uid = [Device].Device_uid
[Type] INNER JOIN [Device] ON [Type].Type_uid = [Device].Type_uid
WHERE
[Device].Type_uid = ${my_type_uid} AND [Device].Device_uid = ${my_uid}
This is not valid MySQL syntax
– Nick
Jan 3 at 10:58
@Nick - So i have given the solution according to SQL Server but should work for MySql as well, could you help me to point out the problem in the above query?
– Subhash Gehlot
Jan 4 at 13:14
MySQL uses backticks to escape words, not square brackets. Also it has different reserved words to SQL
– Nick
Jan 4 at 20:43
add a comment |
Try something like this:
SELECT ${my_uid} AS uid,
(SELECT TotalTime FROM Session WHERE uid = ${my_uid} ORDER BY StartTime DESC LIMIT 1) AS TotalTime,
(SELECT HoursAtService FROM Service WHERE udi = ${my_uid} ORDER BY StartTime DESC LIMIT 1) AS HoursAtService,
(SELECT ServiceHours FROM Type WHERE type_uid = ${my_type_uid) AS ServiceHours
Thanks for this! What does the &{my_uid} syntax do? I have a uid variable that I reference as ${my_uid} (javascript), but I'm a bit unsure of the & syntax
– Cornel Verster
Jan 3 at 12:26
Just a typo, edited.
– Usagi Miyamoto
Jan 3 at 14:13
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54020250%2fcombining-multiple-sql-select-statements-into-one%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can merge above single queries in one query like below MYSQL Query:
SELECT Session.uid, Session.TotalTime, Service.HoursAtService, ServiceHours.ServiceHours
FROM Session
JOIN Service ON Service.udi = Session.uid
JOIN ServiceHours ON ServiceHours.type_uid = Session.uid
WHERE Session.uid = ${my_uid}
ORDER BY Session.StartTime DESC LIMIT 1;
Change the column names as you have in your related tables.
Hi there, I need to do a ORDER BY on both Session and Service tables though. Meaning, the StartTime in these tables will be different, but the ORDER BY must apply to both. Will this be covered?
– Cornel Verster
Jan 3 at 10:27
Yes, you can apply order by on multiple columns like Session.column_name DESC, Service.column_name ASC
– Manoj Patel
Jan 3 at 10:32
add a comment |
You can merge above single queries in one query like below MYSQL Query:
SELECT Session.uid, Session.TotalTime, Service.HoursAtService, ServiceHours.ServiceHours
FROM Session
JOIN Service ON Service.udi = Session.uid
JOIN ServiceHours ON ServiceHours.type_uid = Session.uid
WHERE Session.uid = ${my_uid}
ORDER BY Session.StartTime DESC LIMIT 1;
Change the column names as you have in your related tables.
Hi there, I need to do a ORDER BY on both Session and Service tables though. Meaning, the StartTime in these tables will be different, but the ORDER BY must apply to both. Will this be covered?
– Cornel Verster
Jan 3 at 10:27
Yes, you can apply order by on multiple columns like Session.column_name DESC, Service.column_name ASC
– Manoj Patel
Jan 3 at 10:32
add a comment |
You can merge above single queries in one query like below MYSQL Query:
SELECT Session.uid, Session.TotalTime, Service.HoursAtService, ServiceHours.ServiceHours
FROM Session
JOIN Service ON Service.udi = Session.uid
JOIN ServiceHours ON ServiceHours.type_uid = Session.uid
WHERE Session.uid = ${my_uid}
ORDER BY Session.StartTime DESC LIMIT 1;
Change the column names as you have in your related tables.
You can merge above single queries in one query like below MYSQL Query:
SELECT Session.uid, Session.TotalTime, Service.HoursAtService, ServiceHours.ServiceHours
FROM Session
JOIN Service ON Service.udi = Session.uid
JOIN ServiceHours ON ServiceHours.type_uid = Session.uid
WHERE Session.uid = ${my_uid}
ORDER BY Session.StartTime DESC LIMIT 1;
Change the column names as you have in your related tables.
answered Jan 3 at 10:23
Manoj PatelManoj Patel
17519
17519
Hi there, I need to do a ORDER BY on both Session and Service tables though. Meaning, the StartTime in these tables will be different, but the ORDER BY must apply to both. Will this be covered?
– Cornel Verster
Jan 3 at 10:27
Yes, you can apply order by on multiple columns like Session.column_name DESC, Service.column_name ASC
– Manoj Patel
Jan 3 at 10:32
add a comment |
Hi there, I need to do a ORDER BY on both Session and Service tables though. Meaning, the StartTime in these tables will be different, but the ORDER BY must apply to both. Will this be covered?
– Cornel Verster
Jan 3 at 10:27
Yes, you can apply order by on multiple columns like Session.column_name DESC, Service.column_name ASC
– Manoj Patel
Jan 3 at 10:32
Hi there, I need to do a ORDER BY on both Session and Service tables though. Meaning, the StartTime in these tables will be different, but the ORDER BY must apply to both. Will this be covered?
– Cornel Verster
Jan 3 at 10:27
Hi there, I need to do a ORDER BY on both Session and Service tables though. Meaning, the StartTime in these tables will be different, but the ORDER BY must apply to both. Will this be covered?
– Cornel Verster
Jan 3 at 10:27
Yes, you can apply order by on multiple columns like Session.column_name DESC, Service.column_name ASC
– Manoj Patel
Jan 3 at 10:32
Yes, you can apply order by on multiple columns like Session.column_name DESC, Service.column_name ASC
– Manoj Patel
Jan 3 at 10:32
add a comment |
You can use the below query to achieve the things which you mentioned, I have also taken care of square brackets for the keywords because service and session are SQL keywords.
SELECT
[Device].Type_uid AS DeviceTypeId, [Device].Device_uid AS DeviceId, [Session].TotalTime, [Service].HoursAtService, [Type].ServiceHours
FROM
[Session] INNER JOIN [Device] ON [Session].Device_uid = [Device].Device_uid
[Service] INNER JOIN [Device] ON [Service].Device_uid = [Device].Device_uid
[Type] INNER JOIN [Device] ON [Type].Type_uid = [Device].Type_uid
WHERE
[Device].Type_uid = ${my_type_uid} AND [Device].Device_uid = ${my_uid}
This is not valid MySQL syntax
– Nick
Jan 3 at 10:58
@Nick - So i have given the solution according to SQL Server but should work for MySql as well, could you help me to point out the problem in the above query?
– Subhash Gehlot
Jan 4 at 13:14
MySQL uses backticks to escape words, not square brackets. Also it has different reserved words to SQL
– Nick
Jan 4 at 20:43
add a comment |
You can use the below query to achieve the things which you mentioned, I have also taken care of square brackets for the keywords because service and session are SQL keywords.
SELECT
[Device].Type_uid AS DeviceTypeId, [Device].Device_uid AS DeviceId, [Session].TotalTime, [Service].HoursAtService, [Type].ServiceHours
FROM
[Session] INNER JOIN [Device] ON [Session].Device_uid = [Device].Device_uid
[Service] INNER JOIN [Device] ON [Service].Device_uid = [Device].Device_uid
[Type] INNER JOIN [Device] ON [Type].Type_uid = [Device].Type_uid
WHERE
[Device].Type_uid = ${my_type_uid} AND [Device].Device_uid = ${my_uid}
This is not valid MySQL syntax
– Nick
Jan 3 at 10:58
@Nick - So i have given the solution according to SQL Server but should work for MySql as well, could you help me to point out the problem in the above query?
– Subhash Gehlot
Jan 4 at 13:14
MySQL uses backticks to escape words, not square brackets. Also it has different reserved words to SQL
– Nick
Jan 4 at 20:43
add a comment |
You can use the below query to achieve the things which you mentioned, I have also taken care of square brackets for the keywords because service and session are SQL keywords.
SELECT
[Device].Type_uid AS DeviceTypeId, [Device].Device_uid AS DeviceId, [Session].TotalTime, [Service].HoursAtService, [Type].ServiceHours
FROM
[Session] INNER JOIN [Device] ON [Session].Device_uid = [Device].Device_uid
[Service] INNER JOIN [Device] ON [Service].Device_uid = [Device].Device_uid
[Type] INNER JOIN [Device] ON [Type].Type_uid = [Device].Type_uid
WHERE
[Device].Type_uid = ${my_type_uid} AND [Device].Device_uid = ${my_uid}
You can use the below query to achieve the things which you mentioned, I have also taken care of square brackets for the keywords because service and session are SQL keywords.
SELECT
[Device].Type_uid AS DeviceTypeId, [Device].Device_uid AS DeviceId, [Session].TotalTime, [Service].HoursAtService, [Type].ServiceHours
FROM
[Session] INNER JOIN [Device] ON [Session].Device_uid = [Device].Device_uid
[Service] INNER JOIN [Device] ON [Service].Device_uid = [Device].Device_uid
[Type] INNER JOIN [Device] ON [Type].Type_uid = [Device].Type_uid
WHERE
[Device].Type_uid = ${my_type_uid} AND [Device].Device_uid = ${my_uid}
answered Jan 3 at 10:43
Subhash GehlotSubhash Gehlot
114
114
This is not valid MySQL syntax
– Nick
Jan 3 at 10:58
@Nick - So i have given the solution according to SQL Server but should work for MySql as well, could you help me to point out the problem in the above query?
– Subhash Gehlot
Jan 4 at 13:14
MySQL uses backticks to escape words, not square brackets. Also it has different reserved words to SQL
– Nick
Jan 4 at 20:43
add a comment |
This is not valid MySQL syntax
– Nick
Jan 3 at 10:58
@Nick - So i have given the solution according to SQL Server but should work for MySql as well, could you help me to point out the problem in the above query?
– Subhash Gehlot
Jan 4 at 13:14
MySQL uses backticks to escape words, not square brackets. Also it has different reserved words to SQL
– Nick
Jan 4 at 20:43
This is not valid MySQL syntax
– Nick
Jan 3 at 10:58
This is not valid MySQL syntax
– Nick
Jan 3 at 10:58
@Nick - So i have given the solution according to SQL Server but should work for MySql as well, could you help me to point out the problem in the above query?
– Subhash Gehlot
Jan 4 at 13:14
@Nick - So i have given the solution according to SQL Server but should work for MySql as well, could you help me to point out the problem in the above query?
– Subhash Gehlot
Jan 4 at 13:14
MySQL uses backticks to escape words, not square brackets. Also it has different reserved words to SQL
– Nick
Jan 4 at 20:43
MySQL uses backticks to escape words, not square brackets. Also it has different reserved words to SQL
– Nick
Jan 4 at 20:43
add a comment |
Try something like this:
SELECT ${my_uid} AS uid,
(SELECT TotalTime FROM Session WHERE uid = ${my_uid} ORDER BY StartTime DESC LIMIT 1) AS TotalTime,
(SELECT HoursAtService FROM Service WHERE udi = ${my_uid} ORDER BY StartTime DESC LIMIT 1) AS HoursAtService,
(SELECT ServiceHours FROM Type WHERE type_uid = ${my_type_uid) AS ServiceHours
Thanks for this! What does the &{my_uid} syntax do? I have a uid variable that I reference as ${my_uid} (javascript), but I'm a bit unsure of the & syntax
– Cornel Verster
Jan 3 at 12:26
Just a typo, edited.
– Usagi Miyamoto
Jan 3 at 14:13
add a comment |
Try something like this:
SELECT ${my_uid} AS uid,
(SELECT TotalTime FROM Session WHERE uid = ${my_uid} ORDER BY StartTime DESC LIMIT 1) AS TotalTime,
(SELECT HoursAtService FROM Service WHERE udi = ${my_uid} ORDER BY StartTime DESC LIMIT 1) AS HoursAtService,
(SELECT ServiceHours FROM Type WHERE type_uid = ${my_type_uid) AS ServiceHours
Thanks for this! What does the &{my_uid} syntax do? I have a uid variable that I reference as ${my_uid} (javascript), but I'm a bit unsure of the & syntax
– Cornel Verster
Jan 3 at 12:26
Just a typo, edited.
– Usagi Miyamoto
Jan 3 at 14:13
add a comment |
Try something like this:
SELECT ${my_uid} AS uid,
(SELECT TotalTime FROM Session WHERE uid = ${my_uid} ORDER BY StartTime DESC LIMIT 1) AS TotalTime,
(SELECT HoursAtService FROM Service WHERE udi = ${my_uid} ORDER BY StartTime DESC LIMIT 1) AS HoursAtService,
(SELECT ServiceHours FROM Type WHERE type_uid = ${my_type_uid) AS ServiceHours
Try something like this:
SELECT ${my_uid} AS uid,
(SELECT TotalTime FROM Session WHERE uid = ${my_uid} ORDER BY StartTime DESC LIMIT 1) AS TotalTime,
(SELECT HoursAtService FROM Service WHERE udi = ${my_uid} ORDER BY StartTime DESC LIMIT 1) AS HoursAtService,
(SELECT ServiceHours FROM Type WHERE type_uid = ${my_type_uid) AS ServiceHours
edited Jan 3 at 14:13
answered Jan 3 at 10:24
Usagi MiyamotoUsagi Miyamoto
4,57411125
4,57411125
Thanks for this! What does the &{my_uid} syntax do? I have a uid variable that I reference as ${my_uid} (javascript), but I'm a bit unsure of the & syntax
– Cornel Verster
Jan 3 at 12:26
Just a typo, edited.
– Usagi Miyamoto
Jan 3 at 14:13
add a comment |
Thanks for this! What does the &{my_uid} syntax do? I have a uid variable that I reference as ${my_uid} (javascript), but I'm a bit unsure of the & syntax
– Cornel Verster
Jan 3 at 12:26
Just a typo, edited.
– Usagi Miyamoto
Jan 3 at 14:13
Thanks for this! What does the &{my_uid} syntax do? I have a uid variable that I reference as ${my_uid} (javascript), but I'm a bit unsure of the & syntax
– Cornel Verster
Jan 3 at 12:26
Thanks for this! What does the &{my_uid} syntax do? I have a uid variable that I reference as ${my_uid} (javascript), but I'm a bit unsure of the & syntax
– Cornel Verster
Jan 3 at 12:26
Just a typo, edited.
– Usagi Miyamoto
Jan 3 at 14:13
Just a typo, edited.
– Usagi Miyamoto
Jan 3 at 14:13
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54020250%2fcombining-multiple-sql-select-statements-into-one%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
show your tables schema
– Artem Ilchenko
Jan 3 at 10:22
what is the relationship between
Service
,Session
&Type
tables?– pkgajulapalli
Jan 3 at 10:22