Archive for July, 2011

Do we Love God Above All Things?

People seek love in many places. When we love someone we have so many feelings and emotions for that person. When we fall in love we feel loved, happy, valued, accepted, honored, wanted and protected and we want this person to be in our life all the time and we will reach to the point that we can not live without them. We think of them all the time and we trust them to share our feelings. This person becomes our entire world and we long and desire to be with them. We love them with all our heart, soul and mind. The said love could be for our parents, spouses, family members, children, neighbors, friends, pets etc. but we have a hard time in loving God truly. God gives us everything we need, and gave us many things and abilities for us to love him.

Even though we say that we Love God our Lord Jesus Christ still we have hard time in loving him truly and we have diverted our mind and love on ourselves ,money, amusements, food and drink, clothes , TV, movies, sports and other types of entertainments. We are constantly distracted from God and busy in running  after worldly and material things. Is this a true love for our God?

If we truly love our God Jesus Christ we would love to spend unlimited time with Him in prayer, and Delighting in God’s Word and receive new revelations about Him, Communicating with God in Prayer by making confession, intercession, supplication and thanks giving .We will Trust His Word and allowing him to guide us into righteousness. God has an unfailing love, he is compassionate, kind and forgiving with us .His everlasting love endures forever he created us and lay down his life for us. His love is manifested by His mercy, grace, pity, patience, loving kindness, goodness, truth, forgiveness, and justice. Jesus Christ demonstrated true love when as God- He humbled himself and became a man on earth to restore our relationship with the God who created us, God made us to be loved perfectly by him, to be respected and treasured by him, his love is infinite. The more we spend time in his presence, the more we understand his love for us .But we often seek this love in other people to get our needs met, this causes us to feel unsatisfied ,unfulfilled ,frustrated and inadequate to meet the needs and are disappointed or hurt at some point.

In Deuteronomy 6:5 and Matthew 22:37-38 God has commanded to love God above everything, above everyone and even above more than our own family members. “Love the LORD your God with all your heart and with all your soul and with all your strength”.

When we love our God Jesus Christ we constantly think of God in our mind and heart we have the opportunity to grow in him depending on him for everything and he becomes our source to meet all of our needs, physically, spiritually, and emotionally. He comforts us, cares for us, appreciates us, he gives us peace through the Holy Spirit. God has spoken to people many times throughout the Scriptures by various means. He also speaks to us through others, through direct revelation, dreams, written words, prophets, circumstances, angels, nature, through impressions, events, thoughts and through the Holy Spirit.

When we are walking in God’s love, following His commands, His joy is manifest in our heart and He responds to us .We need to desire Him with our whole heart, hunger and thirst for Him and His righteousness. The Bible promises that if we seek God, he will come to us. God wants to be in our lives but we must be willing to turn away from the things that are not from God. God gives eternal life for the person who believes in Jesus Christ to lead a holy life and it’s a Gods gift. Eternal life is God’s kind of life. It is life that comes from God. (John 3:16, John 5:39, Romans 2:7)

“Jesus said to him, ‘I am the way, and the truth, and the life; no one comes to the Father, but through me’” (John 14:6).

He is the First and Last, the Beginning and the End!

He is the keeper of Creation and the Creator of all!

He is the creative agent and the image of God!

He is our Passover, our great High priest and the Head of the church!

He is the Architect of the universe and the Manager of all times.

He is same yesterday, today, and forever.

He was bruised and brought healing! He was pierced and eased pain!

He was persecuted and brought freedom! He was dead and brought life!

He is risen and brings power! He reigns and brings Peace!

He became poor – so that we might be rich.

The world can’t understand him, the armies can’t defeat Him,

The schools can’t explain Him, the leaders can’t ignore Him.

Herod couldn’t kill Him, the Pharisees couldn’t confuse Him,

The people couldn’t hold Him and the Satan couldn’t defeat him.

He has been misrepresented by those who don’t know him.

Nero couldn’t crush Him nor Hitler could silence Him neither the New Age can’t replace Him

He is love, truth, holy, just, unchanging God.

He has all power, all knowledge; He rules all things and sustains all things.

He is the Lord of lords, Author of Life and salvation.

He is the advocate and the Judge of the living and the dead.

He rules my life because I am his child and He is my Father.

I serve Him because he knows everything about me, He knows me even before I was conceived.

I love him because He loves me with an everlasting love.

He is my provider, and He meets all my needs.

When I am broken heart, He is very close to me for he is my greatest encourager.

His burden is light, and His goal for me is abundant life.

I follow Him because He is the wisdom of the wise, the power of the powerful,

When I am sad he wipes away every tear from my eyes for he takes away all the pain I have suffered on this earth.

He will never leave me, Never forsake me, Never mislead me, Never forgets me, Never overlook me, and Ever cancel my appointment in His appointment book!

When I am in sorrow, He comforts me!

When I am in danger, He is my refuge and my fortress!

When I am hungry, He feeds me!

When I am sick, he heals me!

When people are unkind to me, He is kindfull towards me!

When people reject me, He accepts me!

When I face Death, He carries me Home!

He is everything for everybody, everywhere, every time, and in every way.

He is my God; My Father who is greater than the father of this world.

He wants me to be his child, a member of Christ’s body and to be a citizen of heaven.

So, if you’re wondering why I feel so secured, understand this…

I delight in him and he will fulfill the desires of my heart!

I am free from any condemnation brought against me and I cannot be separated from the love of God!

I have not been given a spirit of fear but of power, love and a sound mind!

I have been established, anointed and sealed by God.

I am assured that God works for my good in all circumstances.

I am significant because I am a branch of Jesus Christ, the true vine, and a channel of His life.

I am God’s temple and I have been chosen and appointed to bear fruit.

Everyday is a blessing for me for Jesus Christ is in my Life and I can do all things through Christ, who strengthens me!”

 

Psalm 14:2 says that “Lord looks down from heaven on the entire human race; he looks to see if any one is truly wise, if anyone seeks God.

What a MARVELOUS to experience the love of our Lord Jesus Christ and to fall in love with him!Nothing in this life cansubstitute Gods Love!

Inspirational Quotes And Sayings on Friendship

Inspirational Quotes and Sayings About Friendships

Proverbs 13:20 NIV
He who walks with the wise grows wise, but a companion of fools suffers harms.

John 15:13 NIV
Greater Love has no one than this, that he lay down his life for his friends.

Ecclesiastes 4:9-10 NIV
Two are better than one, because they have a good return for their work; If one falls down, his friend can help him up. But pity the man who falls and has no one to help him up!

Proverbs 13:26 NIV
A righteous man is cautious in friendship, but the way of the wicked leads them astray.

Proverbs 27:17 NIV
As iron sharpens iron, so one man sharpens another.

More Friendship Bible Quotes and Sayings

Inspirational Friendship Quotes and Sayings about True Friends

A true friend never gets in your way unless you happen to be going down. ~Arnold Glasow

The most beautiful discovery true friends make is that they can grow separately without growing apart. ~Elisabeth Foley

True friendship comes when silence between two people is comfortable. ~Dave Tyson Gentry

Funny Friendship Quotes

Only your real friends will tell you when your face is dirty. ~Sicilian Proverb

A true friend is one who thinks you are a good egg even if you are half-cracked. ~Author Unknown

Bible Verses About Friends

Inspirational Quotes and Sayings about Friendship By Ralph Waldo Emerson

A friend is a person with whom I may be sincere. Before him I may think aloud. I am arrived at last in the presence of a man so real and equal, that I may drop even those undermost garments of dissimulation, courtesy, and second thought, which men never put off, and may deal with him with the simplicity and wholeness with which one chemical atom meets another. ~Ralph Waldo Emerson

A man’s growth is seen in the successive choirs of his friends. ~Ralph Waldo Emerson

He who has a thousand friends has not a friend to spare, and he who has one enemy will meet him everywhere. ~Ralph Waldo Emerson

Inspirational Quotes and Sayings About Friendship By Famous People

We are not enemies, but friends. We must not be enemies. Though passion may have strained, it must not break our bonds of affection. The mystic cords of memory will swell when again touched as surely they will be by the better angels of our nature. ~Abraham Lincoln

Friendship is unnecessary, like philosophy, like art…. It has no survival value; rather it is one of those things that give value to survival. ~C.S. Lewis

But friendship is precious, not only in the shade, but in the sunshine of life, and thanks to a benevolent arrangement the greater part of life is sunshine. ~Thomas Jefferson

‘Tis a great confidence in a friend to tell him your faults; greater to tell him his. ~Benjamin Franklin

I have friends in overalls whose friendship I would not swap for the favor of the kings of the world. ~Thomas A. Edison

Inspirational Friendship Quotes and Sayings- Advice on Friendship

If a friend is in trouble, don’t annoy him by asking if there is anything you can do. Think up something appropriate and do it. ~Edgar Watson Howe

A loyal friend laughs at your jokes when they’re not so good, and sympathizes with your problems when they’re not so bad. ~Arnold H. Glasgow

I hope that these inspirational Quotes and Sayings about friends and friendships were uplifting to you today. Feel free to add any other quotes on friendship to the comments below.

Database N-To-N Relationships

Database N-to-N Relationships
Database Essentials – Part 5
Division 1

Introduction
This is part 5 of my series, Database Essentials. Database Essentials is division 1 of a set of tutorials I have on Database. In the previous part of the tutorial, we saw an example of one-to-many relationships. You have one-to-one relationships, one-to-many relationships and many-to-many relationships. There are other relationships (associations), which are not classified as N-to-N relationships. In this part of the tutorial we look at one-to-one, one-to-many and many-to-many relationships.

One-to-one Relationships
Imagine that you are a pet store seller; that is you own a store where to sell pets. Open the following link to see the tables of this tutorial.

        http://www.cool-mathematics.com/diagrams/N-to-N-Relationships.htm

Table 5.1 shows a table for the animals (pets). In this table all animal characteristics are table attributes. The table is very small for pedagogic reasons. The values in the table are imaginary; let us allow this simple situation for pedagogic reasons. Let us also assume that the first two animals (rows) are mammals and the second two rows are fishes.

Your customers are people who want to own pets. All animals do not share the same characteristics and a customer may not know all animal characteristics. A mammal (e.g. cat) buyer may want to know the size of the litter or if the animal has claws and he does not know and does not care about characteristics of fishes. On the other hand a fish buyer may not care about mammal characteristics; he might want to know if his would-be pet (fish) is fresh water or salt water fish.

In the table, note that each animal has certain generic properties. The generic properties (attributes) are DateBorn, Name, Gender and color. You can consider the ID as a generic property. However, in the table, the properties LitterSize and Claws are only for mammal, not for the other animal categories (mammal is one category and fishes is another category). The properties, FreshWater and ScaleCondition are only for the fishes category and not for the other animal categories. This is why you have some empty cells in the table.

Table 5.1 is not a good table. You need a class hierarchy of tables. The main table will be one with the generic properties and the other two will be for each category. Table 5.2 shows the main table called Animal table. Table 5.3 shows the Mammal table and Table 5.4 shows the Fishes table.

Each of the category table has a one-to-one relationship (association) with the main table. That is, for each row in a category (mammal or fishes) table there is only one row in the main table.

One-to-Many Relationship
In the previous tutorial we saw an example of one-to-many relationship. There was a sale table and a Sale Item table. Each row in the Sale table would correspond to at least zero row in the Sale Item table (you can refer to the previous tutorial). The class diagram we saw in the previous part has been redrawn in fig. 5.1 of the browser tab window, vertically.

Look at the diagram again. There is the number 1 by the line next to the sale class (table). There is a * by the line next to the SaleItem class. The * means many. So the 1 and the * by the line mean one-to-many.

Sometimes it is good to give the minimum and maximum number of rows involve in a one-to-many relationship. In normal life it is possible to have a customer who has bought nothing. In other words a customer has to exist before any item is bought from a store or anywhere else (e.g. supermarket). When you go into a supermarket, you have to be present at the supermarket first as a customer before you can buy anything. When you place an order from a company, at the company, your credential information has to be recorded first before the items can be sent to you. So a customer must exist first before anything can be bought by him.

The sale and the SaleItem tables of the previous tutorial have been repeated in the browser window tab for this tutorial. Each relationship consists of one row in the sale table and zero or more rows in the SaleItem table. The first row in the Sale table corresponds to three rows in the SaleItem table. The second row in the Sale table corresponds to two rows in the SaleItem table. The third row in the Sale table corresponds to three rows in the SaleItem table. So, for all the relationships of the two tables, the minimum number of rows in the SaleItem table is 2 and the maximum is 3. For each of the relationships there is one and only one row in the Sale table, giving a minimum of 1 row and a maximum of 1 row at the Sale table for each relationship.

If we want to be exact for the class diagram, we would have to type “1…1″ by the line next to the Sale table and “2…3″ by the line next to the SaleItem table. The number on the left of the ellipse (…) is the minimum number of rows for a possible relationship and the number on the right is the maximum number of rows in the relationship. To obtain “2…3″ we look at the tables and did not follow the follow business rules.

When dealing with database, you must always follow business rules. There is the rule that a customer can exist without purchasing anything. This gives a minimum value of zero at the end of the line for the SaleItem table. In practice, there is no limit as to the number of purchases (items) that the customer can make. This many but undefined limit is represented in the class diagram by *. So according to business rules, instead of “2…3″, we should have “0…*”. At the Sale end, there can be one and only one row for any relationship, giving a minimum of 1 row and a maximum of 1 row at the Sale end for any relationship. Fig 5.2 illustrates this.

Many-to-Many Relationship
This is another kind of association. Table 5.7, Table 5.8 and Table 5.9 illustrate this. These are three table of a wholesale company. Table 5.7 is the Order Table having the orders that were placed by the company to suppliers (manufacturers). The actual items (products) ordered are not in this table. Table 5.8 is called the OrderItem table. It shows which item (ItemID) was ordered for a particular order. Table 5.9 is the item table. It shows the items (products) that the company normally orders and sells. 

The Order table has the OrderID column, which is the primary key. It has the date column, which shows the date the order was made. It has the supplierID column indicating the supplier in terms of ID who made the supply. There is a supplier table (not shown) that has information (credentials) for each supplier. In the supplier table, the supplierID uniquely identifies a supplier. The Order table has an employee column indicating in terms of ID, the employee who actually placed and typed the order in the wholesale company. You saw an example of an employee table (not shown here) in one of the previous tutorials.

The OrderItem table has the OrderID and the ItemID. These two columns form the primary key of the of the OrderItem table. The OrderItem table shows which item was ordered for which order. It also shows the quantity of item ordered in its third column. The last column of this table shows the actual price paid.

The Item table shows the items (products) that the company normally orders and sells.  This first column of this table is the ItemID, which is the primary key. The second column describes the item. The third column shows the price you budget for each item.

The many-to-many relationship exists between the Order table and the Item table. This many-to-many relationship is actually indicated by the OrderItem table. We see from the two ID columns of the OrderItem table that OrderID 1 corresponds to ItemID 1 and 2. This is a one-to-many relationship between the Order table and the Item table. We also see from the OrderItem table in the opposite direction that ItemID 2 corresponds to OrderID 1 and 2. This is a one-to-many relationship between the Item table and the Order table.

We have demonstrated that there is a one-to-many relationship between the Order table and the Item table. We have also demonstrated that in the other direction, there is a one-to-many relationship between the Item table and the Order table. Therefore there is a many-to-many relationship between the Order table and the Item table. However, there is a one-to-many relationship between the Order table and OrderItem table and still a one-to-many relationship between the Item table and the OrderItem table.

Fig 5.3 shows a class diagram for many-to-many relationship. Note how two asterisks have been used.

Practical Aspects
Many-to-many relationships are hardly implemented (coded) for a database. Implementing a many-to-many relationship is very difficult and unnecessary. When you have a many-to-many relationship, you have to break it down to one-to-many relationships, before implementation; we shall see how to do this in a different series (division).

The aim of the tutorials concerning relationships (associations) is not to show you how to create tables (and know which columns a table should have) or derive relationships; but it is to show you the types of relationships that exist in databases. We shall learn how to create tables and derive relationships with information you get from company users in a different series (division). The business rules for a database are given to you by the people who will use the database. Similar companies have similar business rules. With experience you understand the basic business rules for common companies. We shall see all of these in a different series.

Let us end here for this part of the series. We continue in the next part still with associations.

Chrys

To arrive at any of the parts of this series, just type the corresponding title below and my name, Chrys, in the Search Box of this page and click Search (use menu if available):

Database
Database Table Keys
Database Table Data Types
Database Associations Overview
Database N-to-N Relationships
Database N-ary Association
Aggregation Association
Composition Association
Generalization Association
Reflexive Association
Computed Values
Database Events