Filtering sql data with multiple filter vb.net (winform) -


i want filtering data sql datagrid.

i have :

1 table (tablex)

3 columns

 col1    col2      col3 1/x/10    bjb    1/20/20 1/y/10    bjb    1/20/30 1/x/10    bjb    1/20/30 1/y/10    bjb    1/20/20 

2 datagrid (dg1, dg2)

i want insert :

dg1 col1 "1/x/10" , col3 "10/20/20"

dg2 col1 "1/y/10 , col3 "10/20/20

i can filter 1 col3

"select col1, col2, col3  tablex col3='10/20/20'" 

how filter col1 witch contain "x" or "y" , col3?

==========================================================================

o yeah.. answer.

this dg1

("select col1, col2, col3  tablex col1 ('%/x/%') , col3='10/20/20'") 

and dg2, different x , y..lol

("select col1, col2, col3  tablex col1 ('%/y/%') , col3='10/20/20'") 

select col1, col2, col3   tablex  col3='10/20/20' , (col1 '%/x/%' or col1 '%/y/%') 

Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -