Search Result

Collapse
3 results in 0.0014 seconds.
Keywords
Members
Tags
comparison
  •  

  • Is it faster to query by doing greater than or doing multiple equals?

    We have a large table with lots or rows. One of the columns has the values either 0,1,2.

    Is it faster to do a query such as

    WHERE columnid > 0

    or

    WHERE columid=1 OR columid=2
    See more | Go to post

  • How can I use Logical OR(||) in a conditional statement where operands are string

    the method :
    Code:
        protected void Menu1_MenuItemDataBound(object sender, MenuEventArgs e)
        {
            string str = e.Item.Text;
            if ((str == "scrap") || (str = "Friend"))
            {
                e.Item.Parent.ChildItems.Remove(e.Item);
            }
    
        }
    it throws an error:
    Error 1: Operator '||' cannot be applied to operands of type 'bool' and...
    See more | Go to post
    Last edited by Frinavale; May 4 '10, 02:26 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.

  • leosuth
    started a topic Date comparison not working in LINQ?

    Date comparison not working in LINQ?

    Hi

    I've got the following function:

    Code:
       public static List<Order> FilterByDateRange(List<Order> _list,string _sdate, string _edate)
        {
          if (_list.Count == 0) return null;
          DateTime _start = Convert.ToDateTime(_sdate);
          string[] _ed = _edate.Split(' ');
          string _edate2 = _ed[0] + " 23:59:59";
          DateTime _end = Convert.ToDateTime(_edate2);
    ...
    See more | Go to post
Working...