BOQ Table Definition

Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

C:\DataSort\A6-1 JKUAT MSC\6-Session 4- Database Management\Lab\BOQ Saturday, September 25, 2010

Sampls.accdb
Table: BOM Page: 1

Properties
DateCreated: 9/25/2010 7:18:54 PM DefaultView: 2
DisplayViewsOnSharePointSit 1 FilterOnLoad: False
GUID: {guid {08A94CF2-C453-4AB7- HideNewField: False
934E-5D0C2513CAC7}}
LastUpdated: 9/25/2010 7:28:06 PM NameMap: Long binary data
OrderByOn: False OrderByOnLoad: True
Orientation: Left-to-Right RecordCount: 14
TotalsRow: False Updatable: True

Columns

Name Type Size


BomID Long Integer 4
ProjectID Long Integer 4
WorkID Long Integer 4
UnitID Long Integer 4
BOM_Quantity Long Integer 4
BOM_Rate Single 4

Relationships

PROJECTBOM

PROJECT BOM
1 ∞ ProjectID
ProjectID

Attributes: Enforced
RelationshipType: One-To-Many

UNITBOM

UNIT BOM
1 ∞ UnitID
UnitID

Attributes: Enforced
RelationshipType: One-To-Many

WORKBOM

WORK BOM
1 ∞ WorkID
WorkID

Attributes: Enforced
RelationshipType: One-To-Many
C:\DataSort\A6-1 JKUAT MSC\6-Session 4- Database Management\Lab\BOQ Saturday, September 25, 2010
Sampls.accdb
Table: BOM Page: 2
C:\DataSort\A6-1 JKUAT MSC\6-Session 4- Database Management\Lab\BOQ Saturday, September 25, 2010
Sampls.accdb
Table: CLASS Page: 3

Properties
DateCreated: 9/25/2010 5:36:59 PM DefaultView: 2
DisplayViewsOnSharePointSit 1 FilterOnLoad: False
GUID: {guid {34ECE654-E5D9-4592- HideNewField: False
96C6-12A3BE54B895}}
LastUpdated: 9/25/2010 8:10:59 PM NameMap: Long binary data
OrderByOn: False OrderByOnLoad: True
Orientation: Left-to-Right RecordCount: 5
TotalsRow: False Updatable: True

Columns

Name Type Size


ClassID Long Integer 4
Class_Text Text 1
Class_Description Text 255

Relationships

CLASSWORK

CLASS WORK
1 ∞ ClassID
ClassID

Attributes: Enforced
RelationshipType: One-To-Many
C:\DataSort\A6-1 JKUAT MSC\6-Session 4- Database Management\Lab\BOQ Saturday, September 25, 2010
Sampls.accdb
Table: PROJECT Page: 4

Properties
DateCreated: 9/25/2010 5:59:48 PM DefaultView: 2
DisplayViewsOnSharePointSit 1 FilterOnLoad: False
GUID: {guid {3D1F5114-9916-4314- HideNewField: False
B6B9-DA8AB8DE346A}}
LastUpdated: 9/25/2010 8:10:59 PM NameMap: Long binary data
OrderByOn: False OrderByOnLoad: True
Orientation: Left-to-Right RecordCount: 3
TotalsRow: False Updatable: True

Columns

Name Type Size


ProjectID Long Integer 4
Project_Name Text 6

Relationships

PROJECTBOM

PROJECT BOM
1 ∞ ProjectID
ProjectID

Attributes: Enforced
RelationshipType: One-To-Many
C:\DataSort\A6-1 JKUAT MSC\6-Session 4- Database Management\Lab\BOQ Saturday, September 25, 2010
Sampls.accdb
Table: UNIT Page: 5

Properties
DateCreated: 9/25/2010 7:14:17 PM DefaultView: 2
DisplayViewsOnSharePointSit 1 FilterOnLoad: False
GUID: {guid {79DDEE72-1B1F-4AC7- HideNewField: False
B9EC-2FD1FAC92CB2}}
LastUpdated: 9/25/2010 8:10:59 PM NameMap: Long binary data
OrderByOn: False OrderByOnLoad: True
Orientation: Left-to-Right RecordCount: 7
TotalsRow: False Updatable: True

Columns

Name Type Size


UnitID Long Integer 4
Unit_Measure Text 3

Relationships

UNITBOM

UNIT BOM
1 ∞ UnitID
UnitID

Attributes: Enforced
RelationshipType: One-To-Many
C:\DataSort\A6-1 JKUAT MSC\6-Session 4- Database Management\Lab\BOQ Saturday, September 25, 2010
Sampls.accdb
Table: WORK Page: 6

Properties
DateCreated: 9/25/2010 5:38:59 PM DefaultView: 2
DisplayViewsOnSharePointSit 1 FilterOnLoad: False
GUID: {guid {FBA9EEE6-1121-417C- HideNewField: False
879E-A4563DD61B60}}
LastUpdated: 9/25/2010 7:22:59 PM NameMap: Long binary data
OrderByOn: False OrderByOnLoad: True
Orientation: Left-to-Right RecordCount: 15
TotalsRow: False Updatable: True

Columns

Name Type Size


WorkID Long Integer 4
ClassID Long Integer 4
Work_Description Text 255

Relationships

CLASSWORK

CLASS WORK
1 ∞ ClassID
ClassID

Attributes: Enforced
RelationshipType: One-To-Many

WORKBOM

WORK BOM
1 ∞ WorkID
WorkID

Attributes: Enforced
RelationshipType: One-To-Many
C:\DataSort\A6-1 JKUAT MSC\6-Session 4- Database Management\Lab\BOQ Saturday, September 25, 2010
Sampls.accdb
Query: BOMRowID Page: 7

SQL
SELECT BOM.ProjectID, BOM.WorkID, [RowID] AS Expr1
FROM BOM
WHERE ((([RowID])>(SELECT BOM.WorkID
FROM BOM
ORDER BY BOM.ProjectID;)))
ORDER BY BOM.ProjectID;

Columns

Name Type Size


ProjectID Long Integer 4
WorkID Long Integer 4
Expr1 From 0

Table Indexes
Name Number of Fields
PrimaryKey 1
Fields:
BomID Ascending
PROJECTBOM 1
Fields:
ProjectID Ascending
ProjectID 1
Fields:
ProjectID Ascending
UNITBOM 1
Fields:
UnitID Ascending
UnitID 1
Fields:
UnitID Ascending
WORKBOM 1
Fields:
WorkID Ascending
WorkID 1
Fields:
WorkID Ascending
C:\DataSort\A6-1 JKUAT MSC\6-Session 4- Database Management\Lab\BOQ Saturday, September 25, 2010
Sampls.accdb
Query: QRYBOMRANK Page: 8

SQL
SELECT t2.BomID, (Select Count(*) from BOM t1 Where t2.workID = t1.workID and t1.bomid>= t2.bomid)
AS Rank
FROM BOM AS t2
ORDER BY t2.WorkID;

Columns

Name Type Size


BomID Long Integer 4
Rank Long Integer 4

Table Indexes
Name Number of Fields
PrimaryKey 1
Fields:
BomID Ascending
PROJECTBOM 1
Fields:
ProjectID Ascending
ProjectID 1
Fields:
ProjectID Ascending
UNITBOM 1
Fields:
UnitID Ascending
UnitID 1
Fields:
UnitID Ascending
WORKBOM 1
Fields:
WorkID Ascending
WorkID 1
Fields:
WorkID Ascending
C:\DataSort\A6-1 JKUAT MSC\6-Session 4- Database Management\Lab\BOQ Saturday, September 25, 2010
Sampls.accdb
Query: QRYBOQFINAL Page: 9

SQL
SELECT PROJECT.Project_Name, [Class_text] & [bom].[workID] & [Rank] AS Ref, WORK.Work_Description AS
Item, BOM.BOM_Quantity AS Quantity, UNIT.Unit_Measure AS Unit, BOM.BOM_Rate AS Rate,
[BOM_Quantity]*[bom_rate] AS [Value]
FROM (CLASS INNER JOIN [WORK] ON CLASS.ClassID=WORK.ClassID) INNER JOIN (UNIT INNER JOIN
(PROJECT INNER JOIN (BOM INNER JOIN QRYBOMRANK ON BOM.BomID=QRYBOMRANK.BomID) ON
PROJECT.ProjectID=BOM.ProjectID) ON UNIT.UnitID=BOM.UnitID) ON WORK.WorkID=BOM.WorkID
WHERE (((BOM.ProjectID)=1))
ORDER BY PROJECT.Project_Name, [Class_text] & [bom].[workID] & [Rank];

Columns

Name Type Size


Project_Name Text 6
Ref Text 0
Item Text 255
Quantity Long Integer 4
Unit Text 3
Rate Single 4
Value Double 8

Table Indexes
Name Number of Fields
PrimaryKey 1
Fields:
ProjectID Ascending
ClassID 1
Fields:
ClassID Ascending
CLASSWORK 1
Fields:
ClassID Ascending
PrimaryKey 1
Fields:
WorkID Ascending
PrimaryKey 1
Fields:
BomID Ascending
PROJECTBOM 1
Fields:
ProjectID Ascending
ProjectID 1
Fields:
ProjectID Ascending
UNITBOM 1
Fields:
UnitID Ascending
UnitID 1
Fields:
UnitID Ascending
C:\DataSort\A6-1 JKUAT MSC\6-Session 4- Database Management\Lab\BOQ Saturday, September 25, 2010
Sampls.accdb
Query: QRYBOQFINAL Page: 10
WORKBOM 1
Fields:
WorkID Ascending
WorkID 1
Fields:
WorkID Ascending
PrimaryKey 1
Fields:
UnitID Ascending
UnitID 1
Fields:
UnitID Ascending
PrimaryKey 1
Fields:
BomID Ascending
PROJECTBOM 1
Fields:
ProjectID Ascending
ProjectID 1
Fields:
ProjectID Ascending
UNITBOM 1
Fields:
UnitID Ascending
UnitID 1
Fields:
UnitID Ascending
WORKBOM 1
Fields:
WorkID Ascending
WorkID 1
Fields:
WorkID Ascending

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy