Results 1 to 5 of 5

Thread: question:how to check data

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2007
    Posts
    6

    question:how to check data

    Recently I had some interviews. I got a common question:
    how do u do with the data(or check whether the data is correct) before you do the analysis or regression?

    My answer is : plot the gragh of the data to see whether the distribution and the trend is reasonal, and calculate the descriptive statistics.

    I am not sure whether this way is feasible. Please let me know your methodology and suggestions. I look forward to your reply.

    Cheers.

  2. #2
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: question:how to check data

    Please don't double post.

    I would take that to mean before posting to the DB is the data correct on the page? In that case I would attempt to apply the Bussiness rules to test if all required data is present on the form, is all the data of the correct type? Then do the post to DB.
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

  3. #3
    Fanatic Member Dnereb's Avatar
    Join Date
    Aug 2005
    Location
    Netherlands
    Posts
    863

    Re: question:how to check data

    I ussally check data on input to check if it is within scope.
    and just disallow invalid keystrokes. i.a.w. You couldn't type letters in a textbox if it should be a number etc...
    This greatly simplify's more intelligent data checks like is it within a 8% deviation from the previous input or similar stuff.
    why can't programmers keep and 31 Oct and 25 dec apart. Why Rating is Useful
    for every question you ask provide an answer on another thread.

  4. #4

    Thread Starter
    New Member
    Join Date
    May 2007
    Posts
    6

    Re: question:how to check data

    Quote Originally Posted by GaryMazzone
    Please don't double post.

    I would take that to mean before posting to the DB is the data correct on the page? In that case I would attempt to apply the Bussiness rules to test if all required data is present on the form, is all the data of the correct type? Then do the post to DB.
    Sorry about that. I won't double post again.
    "I would take that to mean before posting to the DB is the data correct on the page?" - calculate the mean of the whole data? can u tell me why?

    "In that case I would attempt to apply the Bussiness rules to test if all required data is present on the form, is all the data of the correct type? "- sounds a good point. can u give me an example?

    Many thanks.

  5. #5
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: question:how to check data

    No I mean I think that is what was being asked.

    Say you have a field on the form for Last Name and it is a required field and is not allowed to be empty. I would check that there is data is the textbox and not just a space. Maybe the combination of LastName,FirstName,MiddleInitial and Suffix are required to be unique in the database I would attempt to test for uniqueness before attempting to insert the data.
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width