Skip to content

Commit

Permalink
Merge pull request #111 from MCRE-BE/datetime_query_fix
Browse files Browse the repository at this point in the history
[FIX] Proposal for fixing datetime query examples (#110)
  • Loading branch information
mukunku authored Jun 4, 2024
2 parents 1f1c559 + 206d487 commit b94c733
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/ParquetViewer/MainForm.EventHandlers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,21 @@ private void MainForm_DragEnter(object sender, DragEventArgs e)

private void searchFilterLabel_Click(object sender, EventArgs e)
{
MessageBox.Show(@"NULL CHECK:
MessageBox.Show(@"Detailed documentation : https://github.com/mukunku/ParquetViewer/wiki/Running-Queries
NULL CHECK:
WHERE field_name IS NULL
WHERE field_name IS NOT NULL
DATETIME:
WHERE field_name >= #01/01/2000#
WHERE field_name >= #2000/12/31#
WHERE field_name >= #12/31/2000#
NUMERIC:
WHERE field_name <= 123.4
STRING:
WHERE field_name LIKE '%value%'
WHERE field_name = 'equals value'
WHERE field_name <> 'not equals'
MULTIPLE CONDITIONS:
WHERE (field_1 > #01/01/2000# AND field_1 < #01/01/2001#) OR field_2 <> 100 OR field_3 = 'string value'", "Filtering Query Syntax Examples");
WHERE (field_1 > #2000/12/31# AND field_1 < #2001/12/31#) OR field_2 <> 100 OR field_3 = 'string value'", "Filtering Query Syntax Examples");
}

private void mainGridView_DataBindingComplete(object sender, DataGridViewBindingCompleteEventArgs e)
Expand Down

0 comments on commit b94c733

Please sign in to comment.