sql - MySQL select row with NOT LIKE -
This looks like my desk:
SELECT table2.status, table1.title Table 1 from right to table 2 on table 2 Table 1.id = table2.id
Title of position ended User expired user B active user B. Ended by user C and I want to get titles from users who are not active, I tried:
Select table2.status, table 1 right from the table 1 Join the table on table 2. Table 1.id = table2.id WHERE table2.status 'ACTIVE' does not like The user ended an X The problem is that the status of user b is active and finished and I want a table that shows no active status in the table. :
Title of the position EXPIRED USER An EXPIRED user Here is a statement that gives you one line per non-active user:
Invoices are here to get all the rows, if the user creates a group and a type of flag, if an active status exists for the user, if so, then the user has the HAVING section from the list Remove in Then we decide what position to show. Again, we use the collected flag to find out if our favorite flag is 'finished' or 'cancellation' otherwise it is possible.
BTW: I have removed the right external connecting because I do not understand it. If it really happens that users are added to the externally without entry in the table, but table 2. Instead of IT by table1.title instead of result table and table.
Comments
Post a Comment