Skip to content

returns a table of several columns

I would like to make a function that returns a table of several columns in dependence on the number of columns entered per parameter That is: if the variable num_columns is 10, the function must …

Excluding a value from a count with SQL

I have two temp tables set up. Table A consists of members and the businesses that they manage, multiple members can be associated to a single business. Table B consists of just the members, their ID’…

Updating table with joining to a second table

I’m trying to update the value in column ‘ID’ from table 1 with the value in column ‘ID’ from table 2 – Only if they do not match. I think I have everything except the set statement down. I’m …

Showing multi row in one row

I am developing a page where I have to show all the jobs of an employee with a work number and the total of each type of hours in each work I can display it, but, my problem is when the employer …