Skip to content
Advertisement

how to get single result in using 2 table data

i have to table 2 in same structure .i already get the result by using one table using following query

this query will time devide in to the 2 part(time in and time out) .it work fine.now want to get the data from anther table also.it also have same structure attendancedata table.

attendancedata table structure

tempattendancedata table structure

i want get the result consider above table record and then split time in to the two part .how can i do this task? actual requirement is tempattendancedata table data also need considering for the time split

Advertisement

Answer

you include the results of your temp table using UNION ALL then, put it in a subquery for your select case statement

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement