Add office photos
Employer?
Claim Account for FREE

Website Developers India

4.6
based on 11 Reviews
Filter interviews by

Lemma Technologies Interview Questions and Answers

Updated 5 Feb 2024

Q1. What is indexing? Different types of indexing in MS SQL

Ans.

Indexing is a way to improve database performance by creating a separate data structure that allows faster data retrieval.

  • Clustered index: sorts and stores the data rows in the table based on their key values

  • Non-clustered index: creates a separate structure that includes the indexed columns and a pointer to the data row

  • Full-text index: enables full-text search on character-based data types

  • Filtered index: indexes a subset of data based on a filter predicate

  • Spatial index: optim...read more

Add your answer

Q2. Can we delete records from views? What is the use view?

Ans.

Yes, we can delete records from views. Views are virtual tables that display data from one or more tables.

  • Views are used to simplify complex queries by providing a virtual table with a specific subset of data.

  • Deleting records from a view will delete the corresponding records from the underlying table(s).

  • Views can also be used to restrict access to sensitive data by only allowing certain columns to be displayed.

  • Example: DELETE FROM my_view WHERE column_name = 'value';

Add your answer

Q3. Difference between function and stored procedure

Ans.

Functions return a value while stored procedures do not.

  • Functions are used to perform a specific task and return a value.

  • Stored procedures are used to execute a set of SQL statements and do not return a value.

  • Functions can be used in SQL statements while stored procedures cannot.

  • Functions can be called from within stored procedures.

  • Functions are deterministic while stored procedures may not be.

  • Functions can be used in views while stored procedures cannot.

Add your answer

Q4. Use of temp table and magic table

Ans.

Temp table and magic table are used in SQL for temporary storage and tracking changes respectively.

  • Temp table is used to store intermediate results during a query execution.

  • Magic table is used to track changes made to a table during an INSERT, UPDATE or DELETE operation.

  • Temp table is created using CREATE TABLE statement with # or ## prefix.

  • Magic table is accessed using the special INSERTED and DELETED tables.

  • Temp table is dropped automatically at the end of a session or trans...read more

Add your answer
Discover Lemma Technologies interview dos and don'ts from real experiences

Q5. Query optimization techniques

Ans.

Query optimization techniques aim to improve the performance of database queries.

  • Use indexes to speed up query execution

  • Avoid using SELECT * and instead specify only required columns

  • Use JOINs instead of subqueries

  • Avoid using functions in WHERE clauses

  • Use EXPLAIN to analyze query execution plan

Add your answer

Q6. Types of constraints

Ans.

Constraints are limitations or rules that must be followed in software development.

  • Data constraints: limit the type or amount of data that can be entered

  • Domain constraints: limit the values that can be entered

  • Business rules: limit the actions that can be taken

  • Hardware constraints: limit the hardware that can be used

  • Time constraints: limit the time available for development or execution

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

3.5
 • 372 Interview Questions
4.4
 • 252 Interview Questions
4.1
 • 224 Interview Questions
4.2
 • 201 Interview Questions
4.0
 • 172 Interview Questions
3.8
 • 143 Interview Questions
View all
Top Website Developers India Interview Questions And Answers
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter