Skip to content
Advertisement

Tag: where-clause

Oracle: SELECT value from where clause as dummy table

after a lot of searching I unfortunately couldn’t find a solution for the following task: I need an Oracle-SQL-Query that returns the value from the WHERE-clause as the result value. This sounds easy, but I just couldn’t find out how to achieve this. Example (how it should be): Desired Result: I know that I could write something like But in

Using the OR operator in a nested SQL Statement

I have a database with vendors, what they sell and where they are located. I need to search for vendors that are based off of a specific locality like a state or for vendors who sell a certain number of products. An example of this question is: What are the full names of all vendors who can supply more than

SQL exclude wildcard from WHERE

We’ve got a query on SAP which has some potential to cause problems. Somebody put the wildcard (%) into the prompt and of course everything got clogged up. Is there a way to disallow the wildcard in the WHERE, maybe with a CASE or something? The only other alternative I could come up with was to only select the top

Filter Table Before Applying Left Join

I have 2 tables, I want to filter the 1 table before the 2 tables are joined together. Customer Table: Entry Table: I want to Left Join so I get all records from the Customer table regardless of whether there are related records in the Entry table. However I want to filter on category D in the entry table before

Advertisement