Join Regular Classroom : Visit ClassroomTech

Teg Analytics Overall Interview Questions + Coding Solutions – codewindow.in

Hot Topics

Teg Analytics Solution

Technical Round

Mostly about projects and sql basics

SQL (Structured Query Language) is a standard language used to interact with relational databases, allowing you to manipulate and query data stored in tables. Some basic SQL concepts include:
  1. SELECT – used to retrieve data from a database table
  2. FROM – specifies the table the data should be retrieved from
  3. WHERE – filters the results of the query based on specific conditions
  4. INSERT – used to insert data into a table
  5. UPDATE – used to modify existing data in a table
  6. DELETE – used to remove data from a table
  7. JOIN – combines rows from two or more tables based on a related column between them
As for projects, here are some steps you can follow to ensure a successful project outcome:
  1. Define the project scope and objectives
  2. Identify project stakeholders and their expectations
  3. Develop a detailed project plan, including tasks, timelines, and resources needed
  4. Assemble the project team and assign tasks
  5. Monitor and control the project progress, making adjustments as needed
  6. Communicate project status to stakeholders
  7. Evaluate project success and document lessons learned for future reference.

Why analytics?

Analytics is important because it helps organizations make informed decisions based on data and insights. With the increasing amount of data generated by businesses and consumers, analytics provides a way to collect, process, and analyze this data to uncover valuable insights. Some of the key benefits of analytics include:

  1. Improved decision making – By analyzing data, organizations can gain a better understanding of their operations, customers, and market trends, which enables them to make more informed decisions.

  2. Increased efficiency – Analytics can help organizations identify inefficiencies in their processes and make improvements, leading to increased efficiency and cost savings.

  3. Competitive advantage – By leveraging analytics, organizations can gain a competitive advantage by understanding their customers and market trends better than their competitors.

  4. Improved customer experience – Analytics can help organizations understand their customers’ behaviors, preferences, and pain points, which can inform improvements to the customer experience.

  5. Improved risk management – By analyzing data, organizations can identify potential risks and take steps to mitigate them, leading to improved risk management.

Overall, analytics is a crucial tool for organizations to make data-driven decisions, improve their operations, and stay ahead of the competition.

SQL joins.

SQL JOINs are used to combine rows from two or more tables based on a related column between them. There are several types of SQL JOINs, including:
  1. INNER JOIN – returns only the rows that have matching values in both tables.
  2. LEFT JOIN (or LEFT OUTER JOIN) – returns all the rows from the left table and the matching rows from the right table. If there is no match, the result will contain NULL values for the columns from the right table.
  3. RIGHT JOIN (or RIGHT OUTER JOIN) – returns all the rows from the right table and the matching rows from the left table. If there is no match, the result will contain NULL values for the columns from the left table.
  4. FULL OUTER JOIN – returns all the rows from both tables, including the matching and non-matching rows. If there is no match, the result will contain NULL values for the columns from either table.
  5. CROSS JOIN – returns the Cartesian product of the two tables, i.e. it returns all possible combinations of rows from both tables.
The SQL JOINs are specified in the FROM clause of a SELECT statement, and the related column is specified using the ON keyword. For example, the following query uses an INNER JOIN to combine data from two tables, customers and orders, based on the customer_id column:
SELECT customers.name, orders.order_date
FROM customers
INNER JOIN orders
ON customers.customer_id = orders.customer_id;

What is primary key?

Primary key is a constraint that should be unique and not null.

How to define class in python?

In Python, a class is a blueprint for creating objects (a particular data structure), providing initial values for state (member variables or attributes), and implementations of behavior (member functions or methods).
Here’s a simple example of how to define a class in Python:
class Car:
    def __init__(self, make, model, year):
        self.make = make
        self.model = model
        self.year = year
    
    def description(self):
        return f"{self.year} {self.make} {self.model}"
In this example, the Car class has three member variables: make, model, and year. It also has a single method description, which returns a string that describes the car. The __init__ method is a special method that is automatically called when an object of the class is created. It allows you to initialize the attributes of the object.
To create an object of the Car class, you can write:
my_car = Car("Toyota", "Camry", 2020)
print(my_car.description())
This will output: 2020 Toyota Camry.

Use of foreign key.

Foreign key is use to maintain referential integrity.

Nagarro Solved

Automata Fixing

      

We Love to Support you

Go through our study material. Your Job is awaiting.

Recent Posts
Categories