Showing posts with label Interview Question. Show all posts
Showing posts with label Interview Question. Show all posts

What Is An Index?

 


What Is An Index?



A SQL index is used to retrieve data from a database very fast. Indexing a table or view is, without a doubt, one of the best ways to improve the performance of queries and applications.

A SQL index is a quick lookup table for finding records users need to search frequently. An index is small, fast, and optimized for quick lookups. It is very useful for connecting relational tables and searching large tables.

SQL indexes are primarily a performance tool, so they really apply if a database gets large. SQL Server supports several types of indexes but one of the most common types is the clustered index. This type of index is automatically created with a primary key. 

Edit and Display Method

 


Difference Between Edit And Display Method


The display indicates that the method’s return value is to be displayed on a form or a report.
The value cannot be altered in the form or report.

Edit indicates that the method’s return type is to be used to provide information for a field that is used in a form. The value in the field can be edited.

What Is Microsoft Dynamics AX and D365FO?

 

Dynamics AX & Dynamics 365 Finance & Operations


Microsoft Dynamics AX is a powerful ERP solution that helps global enterprises organize, automate, and optimize their processes. Microsoft Dynamics AX is simple and intuitive to use and is quick to prove ROI after implementation. Now integrated with the Dynamics 365 product suite, this software tackles alongside other Microsoft software to create a comprehensive, sophisticated ERP.

Dynamics AX helps you take full advantage of new business opportunities across the globe through centralized financial management intelligence and embedded analytics. It also provides country-specific localizations in a single solution, helping your business meet regulations for dozens of countries, including high-growth markets such as Brazil, India, China, and Russia.

Custom Data Entity D365FO




Custom Data Entity in few steps



Step -1
Create New Project and Create a Table like below 





Step-2 
Now add 4 fields. Name, Age, ClassName and RollNumber. After this create an index add two fields RollNumber and className.


Reference: Screenshot



Step-3 
Right-click on the table and navigate to Addin and select Create Data Entity.




Step-4  
if you are facing the error Natural key is not found like the below screenshot.




Step-5 
Go to Table and change the primary index with your newly created index.



Step-6 
Now perform step-3 again... Hope everything will work fine for you.






Extension Cases-

If you have the requirement to create a Systems Out of the box table entity and you are facing the same natural key error then there is another way to create a data entity of the required table.




As we all know we can't change the primary index in Table extensions.. check the below screenshot Primary index field showing disable.



Step-1 Copy any existing Entity 
Step-2 Remove data source, Fields, relations indexes, Methods and groups
Step-3 Add Invent Trans add the required field and make index


Step-4 set the properties like below images


Step-5 Now regenerate the staging table











Virtual Fields Vs Computed Fields

  Virtual Field: A virtual field in D365FO is a field that doesn't have a direct representation in the database. It's a field that y...