Irth3 open jobs

Senior SQL Developer

BackendPosted 8 weeks agovia Himalayas, a remote job board

Work type
RemoteIn India
Experience
6+ years
Pay
Not listedUsually ₹15 LPABackend, median at 5–9 years, in India (Payscale)
Posted
8 weeks ago
Before you apply: make your resume fit this job

Skills it mentions

Add your skills to see which ones you have.

Interview questions for this job6 with answers below, on SQL, C# and .NET

About the job

The SQL Developer will join a team of Mobile, WPF and NET developers to administer, develop and maintain several large-scale Web/database solutions that are critical to our customer's mission and operations. The successful candidate will be passionate about helping organizations achieve transformational results. He or she will be a team player with excellent communication and problem-solving skills.

Requirements

PRIMARY RESPONSIBILITIES

  • Maintain and enhance custom NET/SQL Server application based upon the latest Microsoft NET technologies.
  • Create and build data stores and queries required or MS Reporting Server.
  • Troubleshoot performance, capacity and data security issues.
  • Participate in a collaborative development environment, providing assistance & technical guidance to business team members on impact of database changes.
  • Support the development team by building stored procedures, views, DDL, triggers etc. (If experienced with C# and NET, may participate in building code-based solutions.)
  • Perform other duties as assigned.

SKILLS/ EXPERIENCE

  • 6+ years of experience with MS SQL Server technologies.
  • Experience performance troubleshooting and tuning of SQL queries.
  • Experience in writing complex stored procedures, triggers, views, etc.
  • Proven knowledge in SSRS, SSIS and SSAS, is a plus.
  • Experience in or knowledge of other Microsoft technologies such as Visual Studio,
    C#.NET, WCF, is a plus.
  • Thorough understanding of systems and developing business application.
  • Knowledge of project-management concepts and techniques.
  • Ability to analyze complex applications and systems and program with minimal interfaces.
  • Strong problem-solving skills to determine programming effects on existing systems.
  • Strong decision-making skills for problem identification and solution recommendation.
  • Excellent written and oral communication skills to prepare and communicate programming plans and procedures.
  • Ability to interact with all levels within the company.
  • Should have good knowledge of Power BI and SSRS

Benefits

  • Being an integral part of a dynamic, growing company that is well-respected in its industry.
  • Competitive pay based on experience.

Originally posted on Himalayas

Interested?Senior SQL Developer at Irth

Apply on Himalayas (opens in a new tab)

The job ad ends here

Interview questions for this job6 with answers, on SQL, C# and .NET

Interview questions for this job

For the skills the ad mentions: SQL, C# and .NET.

194 questions
  • What are the options for storing hierarchical data in a relational database?SQL

    My favorite answer is as what the first sentence in this thread suggested. Use an Adjacency List to maintain the hierarchy and use Nested Sets to query the hierarchy.

    The problem up until now has been that the coversion method from an Adjacecy List to Nested Sets has been frightfully slow because most people use the extreme RBAR method known as a "Push Stack" to do the conversion and has been considered to be way to expensive to reach the Nirvana of the simplicity of maintenance by the Adjacency List and the awesome performance of Nested Sets. As a result, most people end up having to settle for one or the other especially if there are more than, say, a lousy 100,000 nodes or so. Using the push stack method can take a whole day to do the conversion on what MLM'ers would consider to be a small million node hierarchy.

    I thought I'd give Celko a bit of competition by coming up with a method to convert an Adjacency List to Nested sets at speeds that just seem impossible. Here's the performance of the push stack method on my i5 laptop.

    Duration for     1,000 Nodes = 00:00:00:870 
    Duration for    10,000 Nodes = 00:01:01:783 (70 times slower instead of just 10)
    Duration for   100,000 Nodes = 00:49:59:730 (3,446 times slower instead of just 100) 
    Duration for 1,000,000 Nodes = 'Didn't even try this'
    

    And here's the duration for the new method (with the push stack method in parenthesis).

    Duration for     1,000 Nodes = 00:00:00:053 (compared to 00:00:00:870)
    Duration for    10,000 Nodes = 00:00:00:323 (compared to 00:01:01:783)
    Duration for   100,000 Nodes = 00:00:03:867 (compared to 00:49:59:730)
    Duration for 1,000,000 Nodes = 00:00:54:283 (compared to something like 2 days!!!)
    

    Yes, that's correct. 1 million nodes converted in less than a minute and 100,000 nodes in under 4 seconds.

    You can read about the new method and get a copy of the code at the following URL. http://www.sqlservercentral.com/articles/Hierarchy/94040/

    I also developed a "pre-aggregated" hierarchy using similar methods. MLM'ers and people making bills of materials will be particularly interested in this article. http://www.sqlservercentral.com/articles/T-SQL/94570/

    If you do stop by to take a look at either article, jump into the "Join the discussion" link and let me know what you think.

    From Stack Overflow: asked by orangepips, answered by Jeff Moden (CC BY-SA 3.0)

  • What is the difference between const and readonly in C#?C#

    Apart from the apparent difference of

    • having to declare the value at the time of a definition for a const VS readonly values can be computed dynamically but need to be assigned before the constructor exits. After that it is frozen.
    • const's are implicitly static. You use a ClassName.ConstantName notation to access them.

    There is a subtle difference. Consider a class defined in AssemblyA.

    public class Const_V_Readonly
    {
      public const int I_CONST_VALUE = 2;
      public readonly int I_RO_VALUE;
      public Const_V_Readonly()
      {
         I_RO_VALUE = 3;
      }
    }
    

    AssemblyB references AssemblyA and uses these values in code. When this is compiled:

    • in the case of the const value, it is like a find-replace. The value 2 is 'baked into' the AssemblyB's IL. This means that if tomorrow I update I_CONST_VALUE to 20, AssemblyB would still have 2 till I recompile it.
    • in the case of the readonly value, it is like a ref to a memory location. The value is not baked into AssemblyB's IL. This means that if the memory location is updated, AssemblyB gets the new value without recompilation. So if I_RO_VALUE is updated to 30, you only need to build AssemblyA and all clients do not need to be recompiled.

    So if you are confident that the value of the constant won't change, use a const.

    public const int CM_IN_A_METER = 100;
    

    But if you have a constant that may change (e.g. w.r.t. precision) or when in doubt, use a readonly.

    public readonly float PI = 3.14;
    

    Update: Aku needs to get a mention because he pointed this out first. Also I need to plug where I learned this: Effective C# - Bill Wagner

    From Stack Overflow: asked by readonly, answered by Gishu (CC BY-SA 4.0)

  • What is the best algorithm for overriding GetHashCode?.NET

    I usually go with something like the implementation given in Josh Bloch's fabulous Effective Java. It's fast and creates a pretty good hash which is unlikely to cause collisions. Pick two different prime numbers, e.g. 17 and 23, and do:

    public override int GetHashCode()
    {
        unchecked // Overflow is fine, just wrap
        {
            int hash = 17;
            // Suitable nullity checks etc, of course :)
            hash = hash * 23 + field1.GetHashCode();
            hash = hash * 23 + field2.GetHashCode();
            hash = hash * 23 + field3.GetHashCode();
            return hash;
        }
    }
    

    As noted in comments, you may find it's better to pick a large prime to multiply by instead. Apparently 486187739 is good... and although most examples I've seen with small numbers tend to use primes, there are at least similar algorithms where non-prime numbers are often used. In the not-quite-FNV example later, for example, I've used numbers which apparently work well - but the initial value isn't a prime. (The multiplication constant is prime though. I don't know quite how important that is.)

    This is better than the common practice of XORing hashcodes for two main reasons. Suppose we have a type with two int fields:

    XorHash(x, x) == XorHash(y, y) == 0 for all x, y
    XorHash(x, y) == XorHash(y, x) for all x, y
    

    By the way, the earlier algorithm is the one currently used by the C# compiler for anonymous types.

    This page gives quite a few options. I think for most cases the above is "good enough" and it's incredibly easy to remember and get right. The FNV alternative is similarly simple, but uses different constants and XOR instead of ADD as a combining operation. It looks something like the code below, but the normal FNV algorithm operates on individual bytes, so this would require modifying to perform one iteration per byte, instead of per 32-bit hash value. FNV is also designed for variable lengths of data, whereas the way we're using it here is always for the same number of field values. Comments on this answer suggest that the code here doesn't actually work as well (in the sample case tested) as the addition approach above.

    // Note: Not quite FNV!
    public override int GetHashCode()
    {
        unchecked // Overflow is fine, just wrap
        {
            int hash = (int) 2166136261;
            // Suitable nullity checks etc, of course :)
            hash = (hash * 16777619) ^ field1.GetHashCode();
            hash = (hash * 16777619) ^ field2.GetHashCode();
            hash = (hash * 16777619) ^ field3.GetHashCode();
            return hash;
        }
    }
    

    Note that one thing to be aware of is that ideally you should prevent your equality-sensitive (and thus hashcode-sensitive) state from changing after adding it to a collection that depends on the hash code.

    As per the documentation:

    You can override GetHashCode for immutable reference types. In general, for mutable reference types, you should override GetHashCode only if:

    • You can compute the hash code from fields that are not mutable; or
    • You can ensure that the hash code of a mutable object does not change while the object is contained in a collection that relies on its hash code.

    Read the rest at the sourceFrom Stack Overflow: asked by bitbonk, answered by Jon Skeet (CC BY-SA 4.0)

  • Select all records where FirstName is "John"?SQL
    SELECT * FROM Customers WHERE FirstName = 'John';
    

    From Cracking the SQL Interview (MIT)

  • What does the [Flags] Enum Attribute mean in C#?C#

    The [Flags] attribute should be used whenever the enumerable represents a collection of possible values, rather than a single value. Such collections are often used with bitwise operators, for example:

    var allowedColors = MyColor.Red | MyColor.Green | MyColor.Blue;
    

    Note that the [Flags] attribute doesn't enable this by itself - all it does is allow a nice representation by the .ToString() method:

    enum Suits { Spades = 1, Clubs = 2, Diamonds = 4, Hearts = 8 }
    [Flags] enum SuitsFlags { Spades = 1, Clubs = 2, Diamonds = 4, Hearts = 8 }
    ...
    var str1 = (Suits.Spades | Suits.Diamonds).ToString();
               // "5"
    var str2 = (SuitsFlags.Spades | SuitsFlags.Diamonds).ToString();
               // "Spades, Diamonds"
    

    It is also important to note that [Flags] does not automatically make the enum values powers of two. If you omit the numeric values, the enum will not work as one might expect in bitwise operations, because by default the values start with 0 and increment.

    Incorrect declaration:

    [Flags]
    public enum MyColors
    {
        Yellow,  // 0
        Green,   // 1
        Red,     // 2
        Blue     // 3
    }
    

    The values, if declared this way, will be Yellow = 0, Green = 1, Red = 2, Blue = 3. This will render it useless as flags.

    Here's an example of a correct declaration:

    [Flags]
    public enum MyColors
    {
        Yellow = 1,
        Green = 2,
        Red = 4,
        Blue = 8
    }
    

    To retrieve the distinct values in your property, one can do this:

    if (myProperties.AllowedColors.HasFlag(MyColor.Yellow))
    {
        // Yellow is allowed...
    }
    

    or prior to .NET 4:

    if((myProperties.AllowedColors & MyColor.Yellow) == MyColor.Yellow)
    {
        // Yellow is allowed...
    }
    if((myProperties.AllowedColors & MyColor.Green) == MyColor.Green)
    {
        // Green is allowed...
    }    
    

    Under the covers

    This works because you used powers of two in your enumeration. Under the covers, your enumeration values look like this in binary ones and zeros:

     Yellow: 00000001
     Green:  00000010
     Red:    00000100
     Blue:   00001000
    

    Similarly, after you've set your property AllowedColors to Red, Green and Blue using the binary bitwise OR | operator, AllowedColors looks like this:

    myProperties.AllowedColors: 00001110
    

    So when you retrieve the value you are actually performing bitwise AND & on the values:

    myProperties.AllowedColors: 00001110
                 MyColor.Green: 00000010
                 -----------------------
                                00000010 // Hey, this is the same as MyColor.Green!
    

    The None = 0 value

    And regarding the use of 0 in your enumeration, quoting from MSDN:

    [Flags]
    public enum MyColors
    {
        None = 0,
        ....
    }
    

    Use None as the name of the flag enumerated constant whose value is zero. You cannot use the None enumerated constant in a bitwise AND operation to test for a flag because the result is always zero. However, you can perform a logical, not a bitwise, comparison between the numeric value and the None enumerated constant to determine whether any bits in the numeric value are set.

    You can find more info about the flags attribute and its usage at msdn and designing flags at msdn

    From Stack Overflow: asked by Brian Leahy, answered by andynil (CC BY-SA 4.0)

  • Do you have any weaknesses?Behavioural

    You should be honest when answering questions on your weaknesses. Say how you're working to improve them.

    Example

    Question - "Do you have any weaknesses?"

    Answer - "I struggle with time management on projects. To make sure I stick to the time frame I'm creating a timetable of steps at the start of each project".

    From National Careers Service: interview advice (Open Government Licence v3.0)

Similar jobs

More like this: Backend developer jobs in India (937) and Remote Backend developer jobs in India (324)