Skip to content

Tag: sql

Check value if exist in another table within Select Query

I have three tables first table stores user basic Info, the second table stores that user who exist in LDAP directory and third table store common information of both tables. below is the table structure I want name from a table if the value is not matched then check to another table. the desired output looks…

SQL Query to determine number of tables

I have this table and I’m trying to determine how many Tables (in a restaurant) are awaiting food. The table( in the database) has the following columns: TableNumber, ObjectType, ObjectDescription and Quantity (amongst others). I made this query to see what is ordered, but would like to know how many un…

XMLTable query returns no result

I’m only passingly familiar with XML. I need to parse a response from a SOAP request. From a lot of searching, I’ve developed the following query to try to extract the status. Ultimately, I’d like to get the status, cntr and cntr_status fields from the response. My query gives no error, but …

match against doesn’t work with the word “when”

When desc contains the string: zoom when wifi dies for 1 second Query 1: No problem, I get the row! Query 2: No results! So when belongs to sql commands. So how to solve this? Answer You need to learn some basics about full text search. One very important concept are stop words. These are words that are not i…