Top "Where-clause" questions

A syntactic form in functional languages used to bind a value to a name in a local scope.

SQL Server: How to use UNION with two queries that BOTH have a WHERE clause?

Given: Two queries that require filtering: select top 2 t1.ID, t1.ReceivedDate from Table t1 where t1.Type = 'TYPE_1' …

sql-server union where-clause
Dynamic WHERE clause in LINQ

What is the best way to assemble a dynamic WHERE clause to a LINQ statement? I have several dozen checkboxes …

c# linq dynamic where-clause
MySQL Multiple Where Clause

I have a table like this: id image_id style_id style_value ----------------------------------- 1 45 24 red 1 45 25 big 1 47 26 small 1 45 27 round 1 49 28 rect I …

mysql sql where-clause
Selecting rows where remainder (modulo) is 1 after division by 2?

There is a column in options that hold an integer. I want to select the row only if that value % 2 = 1. …

sql database select where-clause modulus
MySQL Select last 7 days

I read some Posts here and seems like nothing special but I can not still select the entries of the …

mysql sql where-clause date-arithmetic
Filtering a datatable row using a where clause

I have a DataTable that I am pulling from a DataSet. From the DataTable, I want to use the Where …

c# datatable dataset where-clause datarow
How do I append a 'where' clause using VB.NET and LINQ?

I am pretty new to VB.NET and am having a bit of trouble here with something I thought should …

vb.net linq where-clause
"Or" equivalent in Linq Where() lambda expression

Is there a method in Linq where you can use to build SQL strings like "...where (a=1) OR (a=2)"?

.net linq where-clause
MySQL - ORDER BY values within IN()

I'm hoping to sort the items returned in the following query by the order they're entered into the IN() function. …

mysql sql-order-by where-clause
LINQ Join Where Clause

I'm struggling with a join/where clause with what is a rather simple sql select statement. I am trying to …

linq join where-clause