<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IT Job Interview &#187; Database Questions</title>
	<atom:link href="http://www.it-job-interview.com/category/database-questions/feed" rel="self" type="application/rss+xml" />
	<link>http://www.it-job-interview.com</link>
	<description>Face IT, Answer IT, Get IT!</description>
	<lastBuildDate>Tue, 18 May 2010 04:55:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>DBA and Developer Questions for Oracle Views</title>
		<link>http://www.it-job-interview.com/questions-for-oracle-views.html</link>
		<comments>http://www.it-job-interview.com/questions-for-oracle-views.html#comments</comments>
		<pubDate>Thu, 06 May 2010 00:48:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database Questions]]></category>
		<category><![CDATA[DBA]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.it-job-interview.com/?p=1</guid>
		<description><![CDATA[When hiring Oracle DBAs and developers, a lot of questions are asked about Oracle view. Although view is only one of Oracle objects and it is not that significant in my opinion, for some reason managers and business users love views, therefore in interview they usually like to ask more questions on Oracle views. The [...]]]></description>
			<content:encoded><![CDATA[<p>When hiring Oracle DBAs and developers, a lot of questions are asked about Oracle view. Although view is only one of Oracle objects and it is not that significant in my opinion, for some reason managers and business users love views, therefore in interview they usually like to ask more questions on Oracle views. The following are some of questions and answers for you to prepare: <span id="more-1"></span></p>
<p><strong>1. What is a view and how to create one?</strong></p>
<p>A view is simply the representation of a SQL statement that is stored in memory so that it can easily be re-used. For example, if you frequently use a query SELECT empid FROM emp, you may create a view as<br />
CREATE VIEW view_emp<br />
AS<br />
SELECT empid FROM emp;</p>
<p>Then every time you query this view, Oracle will go out and execute the SQL behind the view to query the database data.</p>
<p><strong>2. Can Oracle view improve performance? Why or why not?</strong></p>
<p>In most cases view does improve performance because of commonality of code being used. Since a view is based on one common set of SQL, when it is called it’s less likely to require parsing. This is because the basic underlying SQL that is called is always the same. A query without parsing is faster. However, since you can add additional where clauses when calling a view, you still need to use bind variables. Additional where clauses without a bind variable can still cause a hard parse.</p>
<p><strong>3. Explain how you may use view to enhance security and what are view&#8217;s limitations for security practice?</strong></p>
<p>It is a two-question in one but people often miss the second one. In any database, view&#8217;s limitation for security is the issue of scalability.</p>
<p>Answer:</p>
<p>Views are commonly used to hide the tables that actually contain the data you are querying. Also, views can be used to restrict the columns that a given user has access to. Using views for security on less complex databases is probably not a bad thing. As databases become more complex, this solution becomes harder to scale and other solutions will be needed.</p>
<p><strong>4. In what situation Oracle views can affect performance, and what is Oracle&#8217;s solution to this issue?</strong></p>
<p>When you create complex views with many table joins to represent large subsets of query and allow many developers and end users to access these views, you may experience poor performance. In this case, you may consider Oracle&#8217;s materialized view.</p>
<p><strong>5. What is materialized view and where is it used?</strong></p>
<p>A materialized view is a snapshot of data that can be refreshed based on a schedule. It is a replica of a target master from a single point in time. Oracle uses materialized views to replicate data to non-master sites in a replication environment and to cache expensive queries in a data warehouse environment.</p>
<p><strong>6. Can view be indexed in Oracle?</strong></p>
<p>Don&#8217;t think Oracle can do everything and quickly answer &#8216;yes&#8217;. SQL Server offers view index, but Oracle does not do it.</p>
<p>Answer:</p>
<p>Regular Oracle view cannot be indexed, but you can utilize table level indexed to tune underlying query that generates the view.</p>
<p><strong>7. Can you insert and update records in a view?</strong></p>
<p>This question asks if you can execute insert or update statement directly on a view instead of on a table.</p>
<p>Answer:</p>
<p>You can only perform data manipulation language (DML) operations with simple views. Complex views don&#8217;t support DML. view is mainly used for presenting and data and simplifying query. Data insert and update should be done on table level.</p>
<p><strong>8. What&#8217;s the different between GRANT CREATE VIEW and CREATE ANY VIEW?</strong></p>
<p>It is not a question about view. This question checks your knowledge of controlling user privileges in Oracle database. Grant Create view gives user&#8217;s right to create new views in grantee&#8217;s schema only. GRANT CREATE ANY VIEW allow users to create views in any schema.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-job-interview.com/questions-for-oracle-views.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What is your database administration experience in configuring Oracle or other RDBMS for OLAP and decision support system?</title>
		<link>http://www.it-job-interview.com/what-is-your-database-administration-experience-in-configuring-oracle-or-other-rdbms-for-olap-and-decision-support-system.html</link>
		<comments>http://www.it-job-interview.com/what-is-your-database-administration-experience-in-configuring-oracle-or-other-rdbms-for-olap-and-decision-support-system.html#comments</comments>
		<pubDate>Fri, 15 Jan 2010 19:10:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database Questions]]></category>
		<category><![CDATA[DBA]]></category>

		<guid isPermaLink="false">http://www.it-job-interview.com/?p=107</guid>
		<description><![CDATA[Be careful about this question.  What the interviewers want to know it your knowledge and experience on OLAP DSS, but many candidates missed this point, they explained their DBA experience in general, but failed to answer what is asked.  To answer this question correctly, you should provide your knowledge about the characters of OLAP and [...]]]></description>
			<content:encoded><![CDATA[<p>Be careful about this question.  What the interviewers want to know it your knowledge and experience on OLAP DSS, but many candidates missed this point, they explained their DBA experience in general, but failed to answer what is asked.  To answer this question correctly, you should provide your knowledge about the characters of OLAP and DSS systems, and how you configure the database to meet the requirements.<span id="more-107"></span></p>
<p>“I have extensive DBA experience in configuring database server for both OLTP and OLAP systems.  I worked on many transaction-oriented database, I also had the opportunity to setup database for decision support systems.  Nowadays most of the RDBMS provide options to setup OLAP for you during installation, you simply select this option and the installation process will configure your database suitable for OLAP and DDS applications.  Of course I can always change my database configuration manually when necessary.  The major difference of OLAP comparing to transaction database is that OLAP requires fast data retrieval and concurrent access.  Many DSS applications run very complicated queries.  In general, there are every few data manipulation activities such as insert, update, and delete.  Therefore in OLAP configuration I use indexes heavily to speed up data query process.  Oracle’s bitmap index and materialized views are also helpful.  I would also configure table partitions based on the analysis of data structure.  I would design tablespaces on different data files put on different hard disks and build tables across. That would increase concurrent access and reduce I/O bottleneck.  For DSS system, I may consider de-normalize the data structure and build dement ional database for reporting and BI purpose.  Depending on the specific project, I may implement other options such as configuring the database cache to meet the OLAP and DSS needs.”</p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-job-interview.com/what-is-your-database-administration-experience-in-configuring-oracle-or-other-rdbms-for-olap-and-decision-support-system.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is Your Experience of Configuring and Using SQL Trace and Autotrace in Oracle?</title>
		<link>http://www.it-job-interview.com/oracle-sql-trace-autotrace.html</link>
		<comments>http://www.it-job-interview.com/oracle-sql-trace-autotrace.html#comments</comments>
		<pubDate>Fri, 07 Aug 2009 18:42:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database Questions]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.it-job-interview.com/?p=61</guid>
		<description><![CDATA[This is a technical interview question to getting your insight of detailed skill sets as an Oracle DBA or developer. Your answer could tell what level of experience in database server and SQL query performance tuning. Your answer could be: “In my past job I’ve configured SQL Trace and Autotrace in our Oracle production environment [...]]]></description>
			<content:encoded><![CDATA[<p>This is a technical interview question to getting your insight of detailed skill sets as an Oracle DBA or developer.  Your answer could tell what level of experience in database server and SQL query performance tuning.  Your answer could be:<span id="more-61"></span></p>
<p>“In my past job I’ve configured SQL Trace and Autotrace in our Oracle production environment with both SQLPlus and Toad for Oracle tools.  I used both SQL Trace and Autotrace almost daily for SQL query analysis and performance tuning.  I created explain plan tables for all users who might use Autotrace in SQLPlus.  For users who use Toad, I only needed to create one set of explain plan tables under Toad schema and the plan tables can be shared by multiple Toad users.    To configure SQL Trace, I need to alter session to set it up.  Then I turn the trace on before query execution and turn it off after the SQL run.  If I run it in SQLPlus, I would need to use the database utility TKPROF to convert the trace output into readable file with formatted data.  In Toad I could the GUI interface to go through the SQL trace process.”</p>
<p>The follow-up question could ask you what is the difference between SQL Trace and Autotrace, and how you determine which one to use first.  So your answer can further explain the knowledge like:</p>
<p>“Autotrace provides us with explain plan and performance statistics on the actual execution of the SQL run. SQL Trace provides performance statistics on the SQL run.  It must be used in conjunction with the Database utility TKPROF in order to provide meaningful information.  The performance statistics for the SQL Trace our more configurable and provide more information; however, Autotrace is easier to get feedback immediately.  Often, Autotrace is used first then SQL Trace when more information is needed.”</p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-job-interview.com/oracle-sql-trace-autotrace.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What Database Design Tools Have You Used?</title>
		<link>http://www.it-job-interview.com/database-design-tools.html</link>
		<comments>http://www.it-job-interview.com/database-design-tools.html#comments</comments>
		<pubDate>Mon, 03 Aug 2009 19:25:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database Questions]]></category>
		<category><![CDATA[Design]]></category>

		<guid isPermaLink="false">http://www.it-job-interview.com/?p=55</guid>
		<description><![CDATA[When interviews want to find out if you do have hands-on experience, they usually ask tools related questions.  If you can explain what tools you have used to do what tasks, they assume you have the skills supported by the tools. As for database design tools, there are many.  The most popular ones are: Rational [...]]]></description>
			<content:encoded><![CDATA[<p>When interviews want to find out if you do have hands-on experience, they usually ask tools related questions.  If you can explain what tools you have used to do what tasks, they assume you have the skills supported by the tools.</p>
<p>As for database design tools, there are many.  The most popular ones are:<span id="more-55"></span><br />
Rational Rose (from IBM)<br />
ERWin (from CA)<br />
Oracle Designer (from Oracle)<br />
PowerDesigner (from Sybase)</p>
<p>A typical answer could be:</p>
<p>&#8220;I mainly used ERWin for database design in my previous projects.  I used this tool to collect business entity data and did data modeling with entity relationship diagram, and then I used the tool&#8217;s function to build the logical database based on the ERD.  I also use it to help me in physical database design analysis and generate SQL scripts to build database objects such as tables, indexes, and views.  I&#8217;ve used ERWin for 4 years in Oracle and DB2 database design projects.  But when I worked on Microsoft SQL Server, I used the build-in Enterprise Manager to do data modeling and create ERD.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-job-interview.com/database-design-tools.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What database design and data modeling experience do you have, and what tools have you used?</title>
		<link>http://www.it-job-interview.com/data-modeling.html</link>
		<comments>http://www.it-job-interview.com/data-modeling.html#comments</comments>
		<pubDate>Mon, 15 Sep 2008 19:07:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database Questions]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Life Cycle]]></category>

		<guid isPermaLink="false">http://www.it-job-interview.com/?p=106</guid>
		<description><![CDATA[Database design is one of the most common topics asked in interviews for application design/development positions.  Your answer should mix your design skills with tool experience and cover the database design lifecycle. “I have hands-on skills and experience in database design and data modeling.  In previous jobs I have worked as the technical lead to [...]]]></description>
			<content:encoded><![CDATA[<p>Database design is one of the most common topics asked in interviews for application design/development positions.  Your answer should mix your design skills with tool experience and cover the database design lifecycle.<span id="more-106"></span></p>
<p>“I have hands-on skills and experience in database design and data modeling.  In previous jobs I have worked as the technical lead to design large scale database systems in Oracle, Sybase, and Microsoft SQL Server.  I have experience in several database design tools such as Oracle Designer, PowerDesigner, and ERWin.  Using these tools I collected and documented user requirements, analyzed business rules and entities, created entity relationship diagrams, designed logical database based on the ERD, and generated SQL scripts to build the physical database., and configured the database server and setup the database.  I also used database design tools to reverse-engineer existing database when necessary.  Database design tools are very helpful for me to automate many tasks through the database design lifecycle, but in many cases I still need to fine-tune the design manually.  I also have experience in using design tools to create data repository for meta data management.  In one of my jobs I worked as the repository administrator responsible for building and maintaining Oracle data repository in Oracle Designer for our term members to work together in a common data design platform through database design phases.  ”</p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-job-interview.com/data-modeling.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What Database Design Experience Do You Have?</title>
		<link>http://www.it-job-interview.com/database-design_125.html</link>
		<comments>http://www.it-job-interview.com/database-design_125.html#comments</comments>
		<pubDate>Thu, 11 Jan 2007 00:02:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database Questions]]></category>
		<category><![CDATA[Design]]></category>

		<guid isPermaLink="false">http://www.it-job-interview.com/?p=125</guid>
		<description><![CDATA[Database design questions is always asked in job interviews for DBAs, database analysts, and database developers. To make interviewers happy, your answer must cover all phases of database design: analysis of business entities, data modeling, build ERD, logical database design, and physical database design. You may also mention the scope of the database, such as [...]]]></description>
			<content:encoded><![CDATA[<p>Database design questions is always asked in job interviews for DBAs, database analysts, and database developers.  To make interviewers happy, your answer must cover all phases of database design:  analysis of business entities, data modeling, build ERD, logical database design, and physical database design.  You may also mention the scope of the database, such as number of entities and tables, the size of database, etc. and tell what database design tools you have used.</p>
<p>Suggested answer:<span id="more-125"></span></p>
<p>&#8220;I have 6 years of database design experience mainly with Oracle database and have been involved in over 10 database design projects.  In these projects I&#8217;ve worked on analysis of business entities and data modeling, creating entity relationship diagrams, design the logical database such as converting entities and attributes into table and columns.  I also worked a lot on designing the physical database such as analyzing storage usage and performance, designing tablespace and table partition, writing SQL scripts to create database objects like tables, views, and indexes.  One of the databases I designed is for a Federal agency&#8217;s employee activity tracking system; it contains over 200 tables, about 50 views, and more than 150 indexes on an Oracle server in UNIX platform.  I used Oracle Designer to assist most of my database design tasks.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-job-interview.com/database-design_125.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Do you have any experience in data acquisition, data migration, and/or data mapping using either ETL (extract, transform, load) tools or customized data conversion solutions?</title>
		<link>http://www.it-job-interview.com/data-migration.html</link>
		<comments>http://www.it-job-interview.com/data-migration.html#comments</comments>
		<pubDate>Sat, 16 Sep 2006 00:19:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database Questions]]></category>
		<category><![CDATA[Software Tools]]></category>

		<guid isPermaLink="false">http://www.it-job-interview.com/?p=112</guid>
		<description><![CDATA[If you have used any ETL tools, explain it; otherwise say you developed customized scripting process by yourself. “In most of data migration projects I developed customized scripting processes.  I’ve developed BCP scripts along with Windows’ batch scripting to migrate data from flat files into Sybase database.  I used Oracle’s SQL Loader a lot to [...]]]></description>
			<content:encoded><![CDATA[<p>If you have used any ETL tools, explain it; otherwise say you developed customized scripting process by yourself.<span id="more-112"></span></p>
<p>“In most of data migration projects I developed customized scripting processes.  I’ve developed BCP scripts along with Windows’ batch scripting to migrate data from flat files into Sybase database.  I used Oracle’s SQL Loader a lot to load ASCII data into Oracle server.  I also had a chance to user Siebel’s Enterprise Integration Manager (EIM) to convert data from external source into Siebel core database structure.”</p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-job-interview.com/data-migration.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Would you Tell Us about Your Database Development Experience?</title>
		<link>http://www.it-job-interview.com/database-development.html</link>
		<comments>http://www.it-job-interview.com/database-development.html#comments</comments>
		<pubDate>Thu, 03 Aug 2006 20:55:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database Questions]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.it-job-interview.com/?p=53</guid>
		<description><![CDATA[Database development is a broad term that can mean a lot of things &#8211; it could be SQL coding, database backend programming (stored procedures, etc.), database applications, database driven systems, basically building any software systems that use data could be considered database development.  Make sure you read the job description carefully to get any clue [...]]]></description>
			<content:encoded><![CDATA[<p>Database development is a broad term that can mean a lot of things &#8211; it could be SQL coding, database backend programming (stored procedures, etc.), database applications, database driven systems, basically building any software systems that use data could be considered database development.  Make sure you read the job description carefully to get any clue about what the employer really want you to do.</p>
<p>In general, database development experience is focused on programming on the database server, &#8211; writing store procedures, triggers, and packages.  In Oracle, you use PL/SQL; in Microsoft SQL Server and Sybase, you use T-SQL.  If you can find out what database server they are using, we then can emphases your skill set on the corresponding SQL language.  The following sample answer is to target Oracle database development:<span id="more-53"></span></p>
<p><strong>Sample answer:</strong></p>
<p>&#8220;I have over 5 years of experience in SQL and PL/SQL programming on Oracle server.  In my last project I was the lead developer for database programming.  This project is a client/server application for inventory tracking.  All business rules were processed on the backend database server.  I developed more than 50 Oracle stored procedures and triggers.  Many stored procedures were organized into packages.  Those procedures were used to process complicated rules and automate inventory tracking in our asset management system.  In previous projects I also worked on Microsoft SQL Server database and coded many stored procedures and functions in T-SQL.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-job-interview.com/database-development.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is Your Knowledge or Experience for Data Warehousing Lifecycle?</title>
		<link>http://www.it-job-interview.com/data-warehousing-lifecycle.html</link>
		<comments>http://www.it-job-interview.com/data-warehousing-lifecycle.html#comments</comments>
		<pubDate>Tue, 18 Jul 2006 19:53:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database Questions]]></category>
		<category><![CDATA[Data Warehousing]]></category>
		<category><![CDATA[Life Cycle]]></category>

		<guid isPermaLink="false">http://www.it-job-interview.com/?p=32</guid>
		<description><![CDATA[Can you describe data warehousing lifecycle? Tell us what you know about data warehousing lifecycle? What are the processes and phases in data warehousing lifecycle? These are fundamental questions to test your knowledge of data warehousing. To answer the questions, just briefly explain each phase of the lifecycle: 1. Data acquisition processes—extract, transform, load (ETL) [...]]]></description>
			<content:encoded><![CDATA[<p>Can you describe data warehousing lifecycle?<br />
Tell us what you know about data warehousing lifecycle?<br />
What are the processes and phases in data warehousing lifecycle?</p>
<p>These are fundamental questions to test your knowledge of data warehousing.  To answer the questions, just briefly explain each phase of the lifecycle:<span id="more-32"></span></p>
<p><strong>1. Data acquisition processes—extract, transform, load (ETL)</strong><br />
The processes include sourcing, cleansing, transforming, and aggregating data using parallel technology tools to build industrial-strength ETL processes that accommodate high data volumes from disparate sources. We identify the best sources for data elements, reconstructing data when required and deploying the most appropriate tools to retrieve the data from its primary sources. Through the cleansing process, we enhance data quality by ensuring data accuracy, type, and consistency, as well as eliminating duplicate records.</p>
<p><strong>2. Data repositories</strong><br />
In the phase you need to build a variety of data repositories, including operational data stores, data marts, data warehouses, web warehouses, and data hubs. You start by implementing and properly documenting a physical data model, ensuring data from all functional areas is sufficiently integrated to support cross-functional analyses. Then you perform database tuning, model denormalization, and aggregation as necessary to support information delivery requirements. When scalability requirements call for it, you partition and distribute data into a parallel architecture.</p>
<p><strong>3. Information delivery applications</strong><br />
You implement information delivery applications    that allow corporate users to access the data in the warehouse. These include    decision support tools, data    mining and analytic tools, and applications that optimize supply chain,    campaign management, billing, and industry-specific processes.  In this phase you also ensure near- and long-term reporting and access requirements are met as well. These may include fixed-frequency static reports; ad-hoc reports; dynamic, multidimensional queries; Internet/intranet application interfaces; and data mining.</p>
<p><strong>4. Data warehouse administration</strong><br />
As the data warehouse grows, administration (or management) of the repository    is a crucial step in optimizing results and return on investment. You provide    data warehousing administration services such as performance analysis, user    analysis, benchmarking, auditing, and tuning to help clients measure the ongoing    success of their data strategies.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-job-interview.com/data-warehousing-lifecycle.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
